From 1bfec3d35e1c2b15649605336b55691d41339d1d Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 26 Nov 2024 15:59:52 -0800 Subject: [PATCH] fix migrate --- pkg/datastore/gormstore/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/datastore/gormstore/db.go b/pkg/datastore/gormstore/db.go index cce6fe4..08c1bc9 100644 --- a/pkg/datastore/gormstore/db.go +++ b/pkg/datastore/gormstore/db.go @@ -29,7 +29,7 @@ func New(ctx *cli.Context) (datastore.Datastore, error) { return nil, err } - if ctx.Bool("pg-migrate") { + if ctx.Bool("migrate") { if err := db.AutoMigrate(&model.Submission{}); err != nil { log.WithError(err).Errorln("database migration failed") return nil, err