1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-25 13:00:51 +00:00

Update: missed to call DDLSpec in Down migration

Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
This commit is contained in:
Gnanakeethan Balasubramaniam 2017-07-16 07:30:53 +05:30
parent d58ad2ee36
commit fc55c2b57c
No known key found for this signature in database
GPG Key ID: 24924006ABA72F31

View File

@ -99,6 +99,7 @@ func (m *Migration) Up() {
// Down implement in the Inheritance struct for down
func (m *Migration) Down() {
m.DDLSpec()
switch m.ModifyType {
case "alter":
m.ModifyType = "reverse"