Merge pull request #511 from mattermost/MM-1698

MM-1698 Fixes upgrade db from 0.6 for postgres
Этот коммит содержится в:
Christopher Speller
2015-08-28 08:26:33 -04:00
родитель 2bc6451e39 f96513809f
Коммит d107b392a6
6 изменённых файлов: 98 добавлений и 102 удалений

Просмотреть файл

@@ -35,11 +35,6 @@ func NewSqlPostStore(sqlStore *SqlStore) PostStore {
}
func (s SqlPostStore) UpgradeSchemaIfNeeded() {
// These execs are for upgrading currently created databases to full utf8mb4 compliance
// Will be removed as seen fit for upgrading
s.GetMaster().Exec("ALTER TABLE Posts charset=utf8mb4")
s.GetMaster().Exec("ALTER TABLE Posts MODIFY COLUMN Message varchar(4000) CHARACTER SET utf8mb4")
}
func (s SqlPostStore) CreateIndexesIfNotExists() {