24 lines
528 B
Go
24 lines
528 B
Go
package integration
|
|
|
|
import (
|
|
"embed"
|
|
|
|
"git.coopcloud.tech/wiki-cafe/member-console/internal/db"
|
|
)
|
|
|
|
//go:embed migrations/*.sql
|
|
var migrations embed.FS
|
|
|
|
// ModuleName is the identifier used in assembled migration filenames.
|
|
const ModuleName = "integration"
|
|
|
|
// MigrationSource returns the integration module's migration source
|
|
// for registration in the boot sequence.
|
|
func MigrationSource() db.MigrationSource {
|
|
return db.MigrationSource{
|
|
Name: ModuleName,
|
|
Migrations: migrations,
|
|
Dir: "migrations",
|
|
}
|
|
}
|