migrations

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChangePatterns = []string{
	`_(to|from|in)_(\w+)_table$`,
	`_(to|from|in)_(\w+)$`,
}
View Source
var CreatePatterns = []string{
	`^create_(\w+)_table$`,
	`^create_(\w+)$`,
}

Functions

This section is empty.

Types

type MigrateCommand

type MigrateCommand struct {
}

func (*MigrateCommand) Description

func (receiver *MigrateCommand) Description() string

Description The console command description.

func (*MigrateCommand) Extend added in v0.4.1

func (receiver *MigrateCommand) Extend() console.CommandExtend

Extend The console command extend.

func (*MigrateCommand) Handle

func (receiver *MigrateCommand) Handle(c *cli.Context) error

Handle Execute the console command.

func (*MigrateCommand) Signature

func (receiver *MigrateCommand) Signature() string

Signature The name and signature of the console command.

type MigrateMakeCommand

type MigrateMakeCommand struct {
}

func (*MigrateMakeCommand) Description

func (receiver *MigrateMakeCommand) Description() string

Description The console command description.

func (*MigrateMakeCommand) Extend added in v0.4.1

func (receiver *MigrateMakeCommand) Extend() console.CommandExtend

Extend The console command extend.

func (*MigrateMakeCommand) Handle

func (receiver *MigrateMakeCommand) Handle(c *cli.Context) error

Handle Execute the console command.

func (*MigrateMakeCommand) Signature

func (receiver *MigrateMakeCommand) Signature() string

Signature The name and signature of the console command.

type TableGuesser

type TableGuesser struct {
}

func (TableGuesser) Guess

func (receiver TableGuesser) Guess(migration string) (string, bool)

Guess Attempt to guess the table name and "creation" status of the given migration, return table, create.

Jump to

Keyboard shortcuts

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