20 lines
614 B
Go
20 lines
614 B
Go
// Package migrations exposes the embedded goose migration files used by
|
|
// Notification Service to provision its `notification` schema in PostgreSQL.
|
|
//
|
|
// The embedded filesystem is consumed by `pkg/postgres.RunMigrations` during
|
|
// notification-service startup and by `cmd/jetgen` when regenerating the
|
|
// `internal/adapters/postgres/jet/` code against a transient PostgreSQL
|
|
// instance.
|
|
package migrations
|
|
|
|
import "embed"
|
|
|
|
//go:embed *.sql
|
|
var fs embed.FS
|
|
|
|
// FS returns the embedded filesystem containing every numbered goose
|
|
// migration shipped with Notification Service.
|
|
func FS() embed.FS {
|
|
return fs
|
|
}
|