fix migrate

This commit is contained in:
Quaternions 2024-11-26 15:59:52 -08:00
parent cf9cb7c6c3
commit 1bfec3d35e

View File

@ -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