mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 17:30:50 +00:00
Update: removing the need to call DDLSpec in the migration file
Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
This commit is contained in:
parent
cb38ab4f85
commit
d58ad2ee36
@ -80,9 +80,14 @@ func init() {
|
||||
migrationMap = make(map[string]Migrationer)
|
||||
}
|
||||
|
||||
//DDLSpec implement in the Inheritance struct for defining structure
|
||||
func (m *Migration) DDLSpec() {
|
||||
|
||||
}
|
||||
|
||||
// Up implement in the Inheritance struct for upgrade
|
||||
func (m *Migration) Up() {
|
||||
|
||||
m.DDLSpec()
|
||||
switch m.ModifyType {
|
||||
case "reverse":
|
||||
m.ModifyType = "alter"
|
||||
|
Loading…
Reference in New Issue
Block a user