migration

package
v2.0.63 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFile

func GenerateFile(path string) error

GenerateFile 生成migrate代码

func Migrate

func Migrate()

Migrate 执行迁移

func Register

func Register(name int, m *Migration)

Register 注册数据库迁移

Types

type Migration

type Migration struct {
	DBName  string
	Migrate []*gormigrate.Migration
}

Migration 数据库迁移

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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