Merge pull request #2496 from mattermost/fix-postgres-bug

Removing old schema upgrades affecting postgres
Этот коммит содержится в:
Christopher Speller
2016-03-22 08:29:28 -04:00
родитель 1b6b70c805 54b9a4ef5b
Коммит bb212949f9

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

@@ -38,11 +38,6 @@ func NewSqlPostStore(sqlStore *SqlStore) PostStore {
}
func (s SqlPostStore) UpgradeSchemaIfNeeded() {
// ADDED for 1.3 REMOVE for 2.2
s.RemoveColumnIfExists("Posts", "ImgCount")
// ADDED for 1.3 REMOVE for 2.2
s.GetMaster().Exec(`UPDATE Preferences SET Type = :NewType WHERE Type = :CurrentType`, map[string]string{"NewType": model.POST_JOIN_LEAVE, "CurrentType": "join_leave"})
}
func (s SqlPostStore) CreateIndexesIfNotExists() {