Documentation
¶
Index ¶
- func DropCoreMigrations(ctx context.Context, logger models.Logger, logLevel string, provider string, ...) error
- func DropMigrations(ctx context.Context, logger models.Logger, provider string, db bun.IDB, ...) error
- func GetMigrations(ctx context.Context, provider string) (*embed.FS, error)
- func RunCoreMigrations(ctx context.Context, logger models.Logger, logLevel string, provider string, ...) error
- func RunMigrations(ctx context.Context, logger models.Logger, provider string, db bun.IDB, ...) error
- type MigrationOperation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DropCoreMigrations ¶
func DropCoreMigrations( ctx context.Context, logger models.Logger, logLevel string, provider string, db bun.IDB, ) error
DropCoreMigrations rolls back all core database migrations
func DropMigrations ¶
func DropMigrations( ctx context.Context, logger models.Logger, provider string, db bun.IDB, sqlFs embed.FS, migrationsDir string, ) error
DropMigrations rolls back migrations from an embedded filesystem for a specific plugin
func GetMigrations ¶
GetMigrations returns the migrations for the specified database provider.
Types ¶
type MigrationOperation ¶
type MigrationOperation int
MigrationOperation represents the type of migration operation
const ( MigrateUpOperation MigrationOperation = iota MigrateDownOperation )
Click to show internal directories.
Click to hide internal directories.