migrations

package
v0.8.11 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 62 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GORMMigrate added in v0.8.4

func GORMMigrate(db *gorm.DB) error

GORMMigrate calls through to gorm's native migrate function with minimal extra logic Useful if the migrations table doesn't exist yet but we don't care

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.

Jump to

Keyboard shortcuts

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