fix "default templates are re-added upon restart"

Mentioned in #161
This commit is contained in:
2024-07-08 10:19:44 +02:00
parent 3edebbdb6c
commit c0c2fcb009
4 changed files with 37 additions and 7 deletions

View File

@@ -84,7 +84,7 @@ func RunBlocking(cfg *RunConfig) {
logger.Error("failed to open database", slog.String("err", err.Error()))
}
if err := dbutil.AutoMigrate(context.Background(), db); err != nil {
if err := dbutil.Migrate(context.Background(), db); err != nil {
logger.Error("failed to init database", slog.String("err", err.Error()))
}