Documentation ¶
Index ¶
Constants ¶
View Source
const ( DatabaseSources = "pkg/database" MigrationsSources = "pkg/database/migrations" )
Variables ¶
View Source
var CreateCmd = &cobra.Command{
Use: "create",
Short: "Creates a blank migration at the next available number",
Long: `The create command generates a new database migration module using
the next available migration number. The result is placed in the
'pkg/database/migrations' folder`,
RunE: newMigrationCmd,
}
View Source
var RebuildCmd = &cobra.Command{
Use: "rebuild",
Short: "Rebuilds the migration_generated.go file with the current state of pkg/database/migrations",
Long: `The rebuild command generates the pkg/database/migration_generated.go file, using the
current contents of the pkg/database/migrations folder.`,
RunE: rebuildMigrationsCmd,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.