Этот коммит содержится в:
Eli Yukelzon
2021-04-06 11:27:09 +03:00
коммит произвёл GitHub
родитель 343c51830f
Коммит 7573efe039

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

@@ -1030,8 +1030,6 @@ func upgradeDatabaseToVersion535(sqlStore *SqlStore) {
}
sqlStore.CreateUniqueCompositeIndexIfNotExists(RemoteClusterSiteURLUniqueIndex, "RemoteClusters", uniquenessColumns)
sqlStore.CreateColumnIfNotExistsNoDefault("Channels", "TotalMsgCountRoot", "bigint", "bigint")
// note: setting default 0 on pre-5.0 tables causes test-db-migration script to fail, so this column will be added to ignore list
sqlStore.CreateColumnIfNotExists("ChannelMembers", "MentionCountRoot", "bigint", "bigint", "0")
sqlStore.AlterColumnDefaultIfExists("ChannelMembers", "MentionCountRoot", model.NewString("0"), model.NewString("0"))