aim-oscar-server/cmd/migrate/migrations/main.go
Artem Titoulenko 0f8e600469 db migrations
2022-02-11 13:28:01 -05:00

18 lines
261 B
Go

package migrations
import (
"embed"
"github.com/uptrace/bun/migrate"
)
var Migrations = migrate.NewMigrations()
//go:embed *.sql *.yml
var sqlMigrations embed.FS
func init() {
if err := Migrations.Discover(sqlMigrations); err != nil {
panic(err)
}
}