migrations

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Source string
	Dir    string
}

Config ...

type Migrations

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

Migrations ...

func NewMigrations

func NewMigrations(cfg *orm2.Config,
	db *gorm.DB,
	orm *orm2.Orm,
	mConf *Config) *Migrations

NewMigrations ...

func (Migrations) Down

func (m Migrations) Down() (err error)

Down ...

func (Migrations) Purge

func (m Migrations) Purge() (err error)

Purge ...

func (Migrations) Up

func (m Migrations) Up() (err error)

Up ...

Jump to

Keyboard shortcuts

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