migrates

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate() error

func MigrateFunc

func MigrateFunc(migrateCmd, mRollbackId string) error

运行迁移

func Rollback

func Rollback(id string) error

Types

type MigrateInit

type MigrateInit struct{}

func (*MigrateInit) GetId

func (m *MigrateInit) GetId() string

func (*MigrateInit) Migrate

func (m *MigrateInit) Migrate() *gormigrate.Gormigrate

type MigrateInterface

type MigrateInterface interface {
	GetId() string
	Migrate() *gormigrate.Gormigrate
}

type Migrate_202111191445

type Migrate_202111191445 struct{}

func (*Migrate_202111191445) GetId

func (m *Migrate_202111191445) GetId() string

func (*Migrate_202111191445) Migrate

func (m *Migrate_202111191445) Migrate() *gormigrate.Gormigrate

type ModelTableNameInterface

type ModelTableNameInterface interface {
	TableName() string
}

Jump to

Keyboard shortcuts

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