migration

package
v0.15.0-alpha13 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 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