Documentation
¶
Index ¶
- Constants
- func MakeCreate(cfgPath, name, mode, project, db string) error
- func MakeDown(mStorage storage.Storage, cfgPath, projectName, dbName string, ...) error
- func MakeList(mStorage storage.Storage, cfgPath, projectName, dbName string, ...) error
- func MakeUp(mStorage storage.Storage, cfgPath string, project, dbName *string) error
Constants ¶
View Source
const ( CreateModeUp = "up" CreateModeDown = "down" CreateModeBoth = "both" )
Migrations create modes.
View Source
const DefaultMigrationNameFormat = "%d%02d%02d_%02d%02d%02d_%s_%s.sql"
DefaultMigrationNameFormat contains template for create migration name.
Variables ¶
This section is empty.
Functions ¶
func MakeCreate ¶
MakeCreate creates new migration file.
func MakeDown ¶
func MakeDown(mStorage storage.Storage, cfgPath, projectName, dbName string, rollbackCount int, skipNoRollback bool) error
MakeDown reverts migrations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.