migrations

package
v0.0.0-...-4c15c94 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateDB

func MigrateDB(provider *providers.Provider, migrateOpts *MigrateOpts) error

MigrateDB runs all our migrations sequentially from an initial database (as defined by schema dump)

Types

type MigrateOpts

type MigrateOpts struct {
	RollbackLast bool
	RollbackTo   string
}

MigrateOpts defines the basic struct interface of options to provide to Gorm

Jump to

Keyboard shortcuts

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