17 lines
309 B
Go
17 lines
309 B
Go
package migrations
|
|
|
|
import (
|
|
"github.com/uptrace/bun"
|
|
"github.com/uptrace/bun/migrate"
|
|
)
|
|
|
|
const (
|
|
defaultVarcharLength = 200
|
|
)
|
|
|
|
var Migrations = migrate.NewMigrations()
|
|
|
|
func NewMigrator(db *bun.DB, opts ...migrate.MigratorOption) *migrate.Migrator {
|
|
return migrate.NewMigrator(db, Migrations, opts...)
|
|
}
|