Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Migration ¶
type Migration struct {
Version int
Name string
SQLite string
Postgres string
// Check runs in the migration's transaction before its SQL; an error refuses the migration
// with nothing altered, and the server does not start.
Check func(context.Context, *sql.Tx) error
}
Migration represents an incremental schema change step.
Click to show internal directories.
Click to hide internal directories.