migration

package
v0.22.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"vef:approval:migration",

	fx.Invoke(autoMigrate),
)

Module provides automatic database migration for the approval module.

Functions

func GetMigrationSQL

func GetMigrationSQL(kind config.DBKind) (string, error)

GetMigrationSQL returns the migration SQL script for the given database kind.

func Migrate

func Migrate(ctx context.Context, db orm.DB, kind config.DBKind) error

Migrate runs the approval module's DDL migration for the given database kind. It checks whether all expected tables exist and skips if they do.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL