diff options
Diffstat (limited to 'store/sqlstore/supplier.go')
-rw-r--r-- | store/sqlstore/supplier.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/store/sqlstore/supplier.go b/store/sqlstore/supplier.go index d1d7564f7..11216dd25 100644 --- a/store/sqlstore/supplier.go +++ b/store/sqlstore/supplier.go @@ -157,15 +157,6 @@ func NewSqlSupplier(settings model.SqlSettings, metrics einterfaces.MetricsInter os.Exit(EXIT_CREATE_TABLE) } - // This store's triggers should exist before the migration is run to ensure the - // corresponding tables stay in sync. Whether or not a trigger should be created before - // or after a migration is likely to be decided on a case-by-case basis. - if err := supplier.oldStores.channel.(*SqlChannelStoreExperimental).CreateTriggersIfNotExists(); err != nil { - mlog.Critical("Error creating triggers", mlog.Err(err)) - time.Sleep(time.Second) - os.Exit(EXIT_GENERIC_FAILURE) - } - UpgradeDatabase(supplier) supplier.oldStores.team.(*SqlTeamStore).CreateIndexesIfNotExists() |