Documentation ¶ Index ¶ func Migrate(db *gorm.DB) error func MigrateTo(db *gorm.DB, migrationID string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Migrate ¶ func Migrate(db *gorm.DB) error Migrate iterates through available migrations, running and tracking migrations that have not been run. func MigrateTo ¶ added in v0.6.10 func MigrateTo(db *gorm.DB, migrationID string) error MigrateTo runs all migrations up to and including the specified migration ID Types ¶ This section is empty. Source Files ¶ View all Source files migrate.go Directories ¶ Show internal Expand all Path Synopsis migration0 migration1559081901 migration1559767166 migration1560433987 migration1560791143 migration1560881846 migration1560881855 migration1560886530 migration1560924400 migration1564007745 migration1565139192 migration1565210496 migration1565291711 migration1565877314 migration1566498796 migration1566915476 migration1567029116 migration1568280052 migration1568390387 migration1568833756 migration1570087128 migration1570675883 migration1573667511 migration1573812490 migration1574659987 migration1575036327 migration1576022702 migration1579700934 migration1580904019 migration1581240419 migration1584377646 migration1585918589 migration1586163842 migration1586342453 Click to show internal directories. Click to hide internal directories.