migrations

package
Version: v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMS0101CreateStructureIAM

func NewMS0101CreateStructureIAM(h *handler.Handler) base.IMigration

NewMS0101CreateStructureIAM new MS0101CreateStructureIAM

func NewMS0102SeedDataIAM

func NewMS0102SeedDataIAM(h *handler.Handler) base.IMigration

NewMS0102SeedDataIAM new MS0102SeedDataIAM

func NewMS0103CreateAndInitCasbin

func NewMS0103CreateAndInitCasbin(h *handler.Handler) base.IMigration

NewMS0103CreateAndInitCasbin new MS0103CreateAndInitCasbin

func NewMS0201CreateStructureGeo

func NewMS0201CreateStructureGeo(h *handler.Handler) base.IMigration

NewMS0201CreateStructureGeo new MS0201CreateStructureGeo

func NewMS0201SeedDataGeo

func NewMS0201SeedDataGeo(h *handler.Handler) base.IMigration

NewMS0201SeedDataGeo new MS0201SeedDataGeo

func NewMS0301CreateStructureEmail added in v0.2.0

func NewMS0301CreateStructureEmail(h *handler.Handler) base.IMigration

NewMS0301CreateStructureEmail new MS0301CreateStructureEmail

func NewMS0301SeedDataEmail added in v0.2.0

func NewMS0301SeedDataEmail(h *handler.Handler) base.IMigration

NewMS0301SeedDataEmail new MS0301SeedDataEmail

Types

type BaseMigration

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

BaseMigration type

type IamCasbinRule

type IamCasbinRule struct {
	TablePrefix string `gorm:"-"`
	PType       string `gorm:"size:100;index;index:idx_unique,unique"`
	V0          string `gorm:"size:100;index;index:idx_unique,unique"`
	V1          string `gorm:"size:100;index;index:idx_unique,unique"`
	V2          string `gorm:"size:100;index;index:idx_unique,unique"`
	V3          string `gorm:"size:100;index;index:idx_unique,unique"`
	V4          string `gorm:"size:100;index;index:idx_unique,unique"`
	V5          string `gorm:"size:100;index;index:idx_unique,unique"`
}

IamCasbinRule type Original: https://github.com/casbin/gorm-adapter/blob/master/adapter.go#L31

func (*IamCasbinRule) TableName

func (c *IamCasbinRule) TableName() string

TableName func

type MS0101CreateStructureIAM

type MS0101CreateStructureIAM struct {
	BaseMigration
}

MS0101CreateStructureIAM type

func (*MS0101CreateStructureIAM) Rollback

func (ms01 *MS0101CreateStructureIAM) Rollback(db *gorm.DB) error

Rollback migration

func (*MS0101CreateStructureIAM) Run

func (ms01 *MS0101CreateStructureIAM) Run(db *gorm.DB) error

Run migration

type MS0102SeedDataIAM

type MS0102SeedDataIAM struct {
	BaseMigration
}

MS0102SeedDataIAM type

func (*MS0102SeedDataIAM) Rollback

func (ms01 *MS0102SeedDataIAM) Rollback(db *gorm.DB) error

Rollback migration

func (*MS0102SeedDataIAM) Run

func (ms01 *MS0102SeedDataIAM) Run(db *gorm.DB) error

Run migration

type MS0103CreateAndInitCasbin

type MS0103CreateAndInitCasbin struct {
	BaseMigration
}

MS0103CreateAndInitCasbin type

func (*MS0103CreateAndInitCasbin) Rollback

func (ms01 *MS0103CreateAndInitCasbin) Rollback(db *gorm.DB) error

Rollback migration

func (*MS0103CreateAndInitCasbin) Run

func (ms01 *MS0103CreateAndInitCasbin) Run(db *gorm.DB) error

Run migration

type MS0201CreateStructureGeo

type MS0201CreateStructureGeo struct {
	BaseMigration
}

MS0201CreateStructureGeo type

func (*MS0201CreateStructureGeo) Rollback

func (ms01 *MS0201CreateStructureGeo) Rollback(db *gorm.DB) error

Rollback migration

func (*MS0201CreateStructureGeo) Run

func (ms01 *MS0201CreateStructureGeo) Run(db *gorm.DB) error

Run migration

type MS0201SeedDataGeo

type MS0201SeedDataGeo struct {
	BaseMigration
}

MS0201SeedDataGeo type

func (*MS0201SeedDataGeo) Rollback

func (ms01 *MS0201SeedDataGeo) Rollback(db *gorm.DB) error

Rollback migration

func (*MS0201SeedDataGeo) Run

func (ms01 *MS0201SeedDataGeo) Run(db *gorm.DB) error

Run migration

type MS0301CreateStructureEmail added in v0.2.0

type MS0301CreateStructureEmail struct {
	BaseMigration
}

MS0301CreateStructureEmail type

func (*MS0301CreateStructureEmail) Rollback added in v0.2.0

func (ms01 *MS0301CreateStructureEmail) Rollback(db *gorm.DB) error

Rollback migration

func (*MS0301CreateStructureEmail) Run added in v0.2.0

func (ms01 *MS0301CreateStructureEmail) Run(db *gorm.DB) error

Run migration

type MS0301SeedDataEmail added in v0.2.0

type MS0301SeedDataEmail struct {
	BaseMigration
}

MS0301SeedDataEmail type

func (*MS0301SeedDataEmail) Rollback added in v0.2.0

func (ms01 *MS0301SeedDataEmail) Rollback(db *gorm.DB) error

Rollback migration

func (*MS0301SeedDataEmail) Run added in v0.2.0

func (ms01 *MS0301SeedDataEmail) Run(db *gorm.DB) error

Run migration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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