Versions in this module Expand all Collapse all v1 v1.0.2 Apr 29, 2026 Changes in this version + const StatusFailed + const StatusRollback + const StatusSuccess + func GetDialector(dialect, dsn string) (gorm.Dialector, error) + func LoadLocalMigrations(path string) (map[string]LocalMigration, error) + func RollbackMigrations(db *gorm.DB, cfg Config, steps int) error + func RunMigrations(db *gorm.DB, cfg Config) error + type Config struct + MigrationPath string + TableName string + type LocalMigration struct + DownScript string + Name string + UpScript string + Version string + type MigrationRecord struct + AppliedAt time.Time + DownScript string + ID uint + Message string + Name string + Status string + UpScript string + Version string