Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Collection = migrations.NewCollection()
)
Functions ¶
func DiscoverSQLMigrations ¶
DiscoverSQLMigrations scans dir for migrations.
func Run ¶
Run runs command on the db. Supported commands are: - up [target] - runs all available migrations by default or up to target one if argument is provided. - down - reverts last migration. - reset - reverts all migrations. - version - prints current db version. - set_version - sets db version without running migrations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.