Merge pull request #1242 from apaatsio/check-errors-on-create-table

Log errors in table creation
Этот коммит содержится в:
Joram Wilander
2015-10-30 12:11:45 -04:00
родитель 3bd425fd25 9403b8b9d8
Коммит 84faccb7b7

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

@@ -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()