Skip auto dumping database migration

Fix user id from context
This commit is contained in:
Jamie Curnow committed 2023-05-29 14:33:58 +10:00
1 parent cbcb0cc0f8
commit dde368f733
9 files changed
+9 -8

No files matched your search

+1
View File
@@ -20,6 +20,7 @@ func Migrate(followup afterMigrationComplete) bool {
dbURL := config.Configuration.DB.GetDBMateConnectURL()
u, _ := url.Parse(dbURL)
db := dbmate.New(u)
db.AutoDumpSchema = false
db.FS = embed.MigrationFiles
db.MigrationsDir = []string{fmt.Sprintf("./migrations/%s", config.Configuration.DB.GetDriver())}