From 44bb5e54dee9bfe277a3210825e9a2d01175f1f4 Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Tue, 1 Oct 2024 15:36:07 +1000 Subject: [PATCH] fix: don't dump schema on migration (#2923) --- backend/controller/sql/migrate.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/controller/sql/migrate.go b/backend/controller/sql/migrate.go index 7caaab8bc8..f5fcd3da18 100644 --- a/backend/controller/sql/migrate.go +++ b/backend/controller/sql/migrate.go @@ -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"}