Skip to content

Commit

Permalink
fix: don't dump schema on migration (#2923)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas authored Oct 1, 2024
1 parent 86b5174 commit 44bb5e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/controller/sql/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func Migrate(ctx context.Context, dsn string, logLevel log.Level) error {
defer conn.Close()

db := dbmate.New(u)
db.AutoDumpSchema = false
db.FS = migrationSchema
db.Log = log.FromContext(ctx).Scope("migrate").WriterAt(logLevel)
db.MigrationsDir = []string{"schema"}
Expand Down

0 comments on commit 44bb5e5

Please sign in to comment.