Skip to content

Commit

Permalink
Merge pull request #1162 from flanksource/feat/ignore-events-migration
Browse files Browse the repository at this point in the history
feat: ignore db triggers that are related to mission control
  • Loading branch information
moshloop authored Jul 18, 2023
2 parents 8e4805f + a8bd167 commit 14a043d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/db/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ func Init() error {
}()

if RunMigrations {
if err := duty.Migrate(ConnectionString, &migrate.MigrateOptions{IgnoreFiles: []string{"012_changelog.sql"}}); err != nil {
opts := &migrate.MigrateOptions{IgnoreFiles: []string{"007_events.sql", "012_changelog.sql"}}
if err := duty.Migrate(ConnectionString, opts); err != nil {
return err
}
}
Expand Down

0 comments on commit 14a043d

Please sign in to comment.