Documentation
¶
Overview ¶
Package migrate provides migration management for the database extension
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Migrations = migrate.NewMigrations( migrate.WithMigrationsDirectory("./migrations"), )
Migrations is the global migration collection All migrations should register themselves here using init()
View Source
var Models = []interface{}{}
Models is the list of all models that should be auto-registered Add your models here for automatic table creation in development
Functions ¶
func RegisterMigration ¶
RegisterMigration is a helper to register a migration
func RegisterModel ¶
func RegisterModel(model interface{})
RegisterModel adds a model to the auto-registration list
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.