Convert to gormigrate

This commit is contained in:
Jamie Curnow committed 2026-09-24 15:23:05 +10:00
1 parent 2b3bef186c
commit 6c72c63532
15 files changed
+639 -1803

No files matched your search

+2 -1
View File
@@ -15,6 +15,7 @@ import (
"npm/internal/jobqueue"
"npm/internal/jwt"
"npm/internal/logger"
"npm/internal/migrations"
// properly respect available cpu cores
_ "go.uber.org/automaxprocs"
@@ -29,7 +30,7 @@ func main() {
config.CreateDataFolders()
logger.Info("Build Version: %s (%s)", version, commit)
database.Migrate(func() {
migrations.Migrate(func() {
if err := jwt.LoadKeys(); err != nil {
logger.Error("KeysError", err)
os.Exit(1)