feat: automate business upgrades and sync reviewed frontend
This commit is contained in:
+5
-1
@@ -6,7 +6,9 @@ import (
|
||||
"log/slog"
|
||||
"net"
|
||||
"os"
|
||||
"os/signal"
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"kra/internal/config"
|
||||
"kra/internal/data"
|
||||
@@ -173,7 +175,9 @@ func main() {
|
||||
if bc.Data != nil {
|
||||
database = bc.Data.Database
|
||||
}
|
||||
if err := data.MigrateDatabase(context.Background(), database, modules.Catalog(), logger, flagCheckSchema); err != nil {
|
||||
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
|
||||
defer cancel()
|
||||
if err := data.MigrateDatabase(ctx, database, modules.Catalog(), logger, flagCheckSchema, runtime.ConfigPath()); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
logger.Info("database migration verification completed", "mod", "system", "check_only", flagCheckSchema)
|
||||
|
||||
Reference in New Issue
Block a user