Documentation ¶
Overview ¶
Package migrations regroups every migrations available to the pgsql database backend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Migrations []migrate.Migration
Migrations contains every available migrations.
Functions ¶
func NewSimpleMigration ¶
func NewSimpleMigration(id int, qs []MigrationQuery) migrate.Migration
NewSimpleMigration returns a simple migration plan with all provided migration queries concatted in order.
func RegisterMigration ¶
RegisterMigration adds the specified migration to the available migrations.
Types ¶
type MigrationQuery ¶
MigrationQuery contains the Up migration and Down migration in Plain strings.
func ConcatMigrationQueries ¶
func ConcatMigrationQueries(qs []MigrationQuery) MigrationQuery
ConcatMigrationQueries concats migration queries in the give order.
Click to show internal directories.
Click to hide internal directories.