downloader/api/internal/app/persistence/migrations/main.go

18 lines
256 B
Go
Raw Normal View History

2021-12-22 20:21:24 +01:00
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)
}
}