migration

package
v0.0.0-...-a562f3a Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrator

type Migrator struct {
	// contains filtered or unexported fields
}

Migrator runs migration.

func NewMigrator

func NewMigrator(db *gorm.DB, migrations []*gormigrate.Migration) *Migrator

NewMigrator creates migrator.

func (*Migrator) Rollback

func (m *Migrator) Rollback() error

Rollback rollbacks the last migration.

func (*Migrator) Upgrade

func (m *Migrator) Upgrade() error

Upgrade upgrades db schema version.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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