mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 15:20:54 +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)
|
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
|
// Up implement in the Inheritance struct for upgrade
|
||||||
func (m *Migration) Up() {
|
func (m *Migration) Up() {
|
||||||
|
m.DDLSpec()
|
||||||
switch m.ModifyType {
|
switch m.ModifyType {
|
||||||
case "reverse":
|
case "reverse":
|
||||||
m.ModifyType = "alter"
|
m.ModifyType = "alter"
|
||||||
|
Loading…
Reference in New Issue
Block a user