package migrations import ( "context" "git.haelnorr.com/h/oslstats/internal/db" "github.com/uptrace/bun" ) func init() { Migrations.MustRegister( // UP migration func(ctx context.Context, conn *bun.DB) error { // Add your migration code here _, err := conn.NewCreateTable(). IfNotExists(). Model((*db.TeamRoster)(nil)). Exec(ctx) if err != nil { return err } return nil }, // DOWN migration func(ctx context.Context, conn *bun.DB) error { // Add your rollback code here return nil }, ) }