migrations

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.5.0

type Config struct {
	Source string
	Dir    string
}

Config ...

type Migrations

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

Migrations ...

func NewMigrations

func NewMigrations(cfg *orm.Config,
	db *gorm.DB,
	orm *orm.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 ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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