package data

import (
	"kra/pkg/database/migration"
	"kra/pkg/module"

	"gorm.io/gorm"
)

// 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 {
	return migration.Run(db, catalog.MigrationSteps())
}
