优化结构

This commit is contained in:
Yvan
2026-08-22 21:39:39 +08:00
parent 699bcceeea
commit 0126995090
17 changed files with 61 additions and 52 deletions
+1 -7
View File
@@ -7,15 +7,9 @@ import (
"gorm.io/gorm"
)
func InfrastructureMigrations() []migration.Step {
return nil
}
// migrateAll is the single data-layer migration entry point. Every module
// must register its migrations through the application catalog; there is no
// hidden system/payment fallback that could silently omit a new module.
func migrateAll(db *gorm.DB, catalog module.Catalog) error {
steps := append([]migration.Step{}, InfrastructureMigrations()...)
steps = append(steps, catalog.MigrationSteps()...)
return migration.Run(db, steps)
return migration.Run(db, catalog.MigrationSteps())
}