22 lines
598 B
Go
22 lines
598 B
Go
package data
|
|
|
|
import (
|
|
"kra/pkg/database/migration"
|
|
"kra/pkg/module"
|
|
|
|
"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)
|
|
}
|