feat: backend service
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// Package migrations exposes the goose migrations applied at backend startup.
|
||||
package migrations
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"io/fs"
|
||||
)
|
||||
|
||||
//go:embed *.sql
|
||||
var migrationFiles embed.FS
|
||||
|
||||
// Migrations returns the embedded goose migration filesystem. Migration files
|
||||
// sit at the FS root, so callers pass "." as the directory argument to
|
||||
// galaxy/postgres.RunMigrations.
|
||||
func Migrations() fs.FS {
|
||||
return migrationFiles
|
||||
}
|
||||
Reference in New Issue
Block a user