1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-01 01:20:56 +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 // Down implement in the Inheritance struct for down
func (m *Migration) Down() { func (m *Migration) Down() {
m.DDLSpec()
switch m.ModifyType { switch m.ModifyType {
case "alter": case "alter":
m.ModifyType = "reverse" m.ModifyType = "reverse"