Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ChangePatterns = []string{
`_(to|from|in)_(\w+)_table$`,
`_(to|from|in)_(\w+)$`,
}
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 ¶
func (receiver *MigrateCommand) Extend() command.Extend
Extend The console command extend.
func (*MigrateCommand) Handle ¶
func (receiver *MigrateCommand) Handle(ctx console.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 MigrateCreator ¶
type MigrateCreator struct { }
type MigrateMakeCommand ¶
type MigrateMakeCommand struct { }
func (*MigrateMakeCommand) Description ¶
func (receiver *MigrateMakeCommand) Description() string
Description The console command description.
func (*MigrateMakeCommand) Extend ¶
func (receiver *MigrateMakeCommand) Extend() command.Extend
Extend The console command extend.
func (*MigrateMakeCommand) Handle ¶
func (receiver *MigrateMakeCommand) Handle(ctx console.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 MigrateRollbackCommand ¶
type MigrateRollbackCommand struct { }
func (*MigrateRollbackCommand) Description ¶
func (receiver *MigrateRollbackCommand) Description() string
Description The console command description.
func (*MigrateRollbackCommand) Extend ¶
func (receiver *MigrateRollbackCommand) Extend() command.Extend
Extend The console command extend.
func (*MigrateRollbackCommand) Handle ¶
func (receiver *MigrateRollbackCommand) Handle(ctx console.Context) error
Handle Execute the console command.
func (*MigrateRollbackCommand) Signature ¶
func (receiver *MigrateRollbackCommand) Signature() string
Signature The name and signature of the console command.
type MigrateStubs ¶
type MigrateStubs struct { }
func (MigrateStubs) CreateDown ¶
func (receiver MigrateStubs) CreateDown() string
CreateDown Create down migration content.
func (MigrateStubs) CreateUp ¶
func (receiver MigrateStubs) CreateUp() string
CreateUp Create up migration content.
func (MigrateStubs) UpdateDown ¶
func (receiver MigrateStubs) UpdateDown() string
UpdateDown Update down migration content.
func (MigrateStubs) UpdateUp ¶
func (receiver MigrateStubs) UpdateUp() string
UpdateUp Update up migration content.
type TableGuesser ¶
type TableGuesser struct { }