migrations

package
v0.6.0-rc.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL