mirror of
https://github.com/amigan/aim-oscar-server.git
synced 2024-11-22 04:29:47 -05:00
18 lines
261 B
Go
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)
|
|
}
|
|
}
|