downloader/api/internal/app/persistence/migrations/main.go
2021-12-22 20:21:24 +01:00

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)
}
}