Help us shape the future of Go! Take the 2026 Go Developer Survey

migration

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMigrator

func NewMigrator(basicRes core.BasicRes) (core.Migrator, errors.Error)

NewMigrator returns a new Migrator instance, which implemented based on migration_history from the same database

Types

type MigrationHistory

type MigrationHistory struct {
	CreatedAt     time.Time
	ScriptVersion uint64 `gorm:"primarykey"`
	ScriptName    string `gorm:"primarykey;type:varchar(255)"`
	Comment       string
}

func (MigrationHistory) TableName

func (MigrationHistory) TableName() string

Jump to

Keyboard shortcuts

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