migrations

package
Version: v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 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