migrations

package
Version: v0.0.0-...-e348512 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 83 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GORMMigrate

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL