Move migration files

This commit is contained in:
2024-12-30 23:40:52 +01:00
parent 3074d0de93
commit 4ce099621d
4 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@
package main
import (
db2 "code.dlmw.ch/dlmw/qv/internal/db"
"code.dlmw.ch/dlmw/qv/internal/migrations"
"code.dlmw.ch/dlmw/qv/internal/models"
"context"
"database/sql"
@ -33,7 +33,7 @@ func main() {
os.Exit(1)
}
defer db.Close()
err = db2.RunMigrations(db)
err = migrations.Run(db)
if err != nil {
logger.Error(err.Error())
os.Exit(1)