1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 09:20:55 +00:00

Revert "Update: removing the need to call DDLSpec in the migration file"

The odds of getting this perfectly up is not good.

This reverts commit d58ad2ee36.
This commit is contained in:
Gnanakeethan Balasubramaniam 2017-07-16 08:11:10 +05:30
parent fc55c2b57c
commit 749a4028b4
No known key found for this signature in database
GPG Key ID: 24924006ABA72F31

View File

@ -80,14 +80,9 @@ 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"