Skip to content

Commit

Permalink
fixed a typo in the migration options and reverted the disabling of V…
Browse files Browse the repository at this point in the history
…alidateUnknownMigrations
  • Loading branch information
CommanderStorm committed Sep 14, 2023
1 parent 707e937 commit 6d584c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/backend/migration/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ func (m TumDBMigrator) Migrate() error {
log.Info("Using manual migration")
gormigrateOptions := &gormigrate.Options{
TableName: gormigrate.DefaultOptions.TableName,
IDColumnName: gormigrate.DefaultOptions.TableName,
IDColumnName: gormigrate.DefaultOptions.IDColumnName,
IDColumnSize: gormigrate.DefaultOptions.IDColumnSize,
UseTransaction: true,
ValidateUnknownMigrations: false,
ValidateUnknownMigrations: true,
}
mig := gormigrate.New(m.database, gormigrateOptions, []*gormigrate.Migration{
m.migrate20210709193000(),
Expand Down

0 comments on commit 6d584c5

Please sign in to comment.