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