优化结构
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user