From 749a4028b48c87da63c95e7a3b4d57618e82645d Mon Sep 17 00:00:00 2001 From: Gnanakeethan Balasubramaniam Date: Sun, 16 Jul 2017 08:11:10 +0530 Subject: [PATCH] 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 d58ad2ee3697ff0ccda83d020abc7080d99f0a5e. --- migration/migration.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/migration/migration.go b/migration/migration.go index c5a9352e..0a140b24 100644 --- a/migration/migration.go +++ b/migration/migration.go @@ -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"