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

Signed-off-by: 's avatarGnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
parent cb38ab4f
......@@ -80,9 +80,14 @@ 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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment