migrate

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCommand

func InitCommand(fn func(opt *Options))

func InitLog

func InitLog()

func Registry

func Registry(m *gormigrate.Migration)

Types

type Options

type Options struct {
	TableName                 string
	IDColumnName              string
	IDColumnSize              int
	UseTransaction            bool
	ValidateUnknownMigrations bool

	Db             *gorm.DB
	DbPrefix       string
	MigrationsPath string
}

Jump to

Keyboard shortcuts

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