Debug: wtf
Go test / run-go-vet (push) Successful in 6s
Go test / check-swagger-up-to-date (push) Successful in 10s
Go test / run-go-test (push) Failing after 21s
Go test / release-image (push) Has been skipped
Go test / cleanup-go-test (push) Successful in 4s

This commit is contained in:
ytshih committed 2025-12-13 02:43:24 +08:00
1 parent e6c46f29f5
commit e6713dddc4
6 files changed
+36 -12

No files matched your search

+17 -1
View File
@@ -22,6 +22,22 @@ func InitDB(ctx context.Context, db *bun.DB) error {
(*models.Image)(nil),
(*models.Session)(nil),
)
} else {
modls := []any{
(*models.AliasImage)(nil),
(*models.Alias)(nil),
(*models.Image)(nil),
(*models.Session)(nil),
}
for _, model := range modls {
_, err := db.NewCreateTable().
Model(model).
IfNotExists().
Exec(ctx)
if err != nil {
return err
}
}
return nil
}
return nil
}