Files
sm-seo-plugin/updates/registry.go

19 lines
515 B
Go

// Package updates holds the SEO plugin's ordered gormigrate steps.
package updates
import "github.com/go-gormigrate/gormigrate/v2"
var all []*gormigrate.Migration
// Register appends gormigrate steps so later files add migrations without
// editing plugin.go.
func Register(ms ...*gormigrate.Migration) {
all = append(all, ms...)
}
// All returns every migration registered by this package, in ID order (the
// files register themselves in file-name order).
func All() []*gormigrate.Migration {
return all
}