migration

package
v0.0.0-...-7d3b672 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMigrator

func NewMigrator(basicRes context.BasicRes) (plugin.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(160)"`
	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