migrations

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: MIT Imports: 102 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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