This is really helpful if you somehow mess up the schema definitions.
Этот коммит содержится в:
Antti Ahti
2015-10-30 17:44:00 +02:00
родитель 256be4c14d
Коммит 9403b8b9d8

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

@@ -121,7 +121,10 @@ func NewSqlStore() Store {
sqlStore.webhook = NewSqlWebhookStore(sqlStore)
sqlStore.preference = NewSqlPreferenceStore(sqlStore)
sqlStore.master.CreateTablesIfNotExists()
err := sqlStore.master.CreateTablesIfNotExists()
if err != nil {
l4g.Critical("Error creating database tables: %v", err)
}
sqlStore.team.(*SqlTeamStore).UpgradeSchemaIfNeeded()
sqlStore.channel.(*SqlChannelStore).UpgradeSchemaIfNeeded()