|
@ -73,6 +73,14 @@ func moveTeamUnitsToTeamUnitTable(x *xorm.Engine) error { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Commit and begin new transaction for dropping columns
|
|
|
|
|
|
if err := sess.Commit(); err != nil { |
|
|
|
|
|
return err |
|
|
|
|
|
} |
|
|
|
|
|
if err := sess.Begin(); err != nil { |
|
|
|
|
|
return err |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if err := dropTableColumns(sess, "team", "unit_types"); err != nil { |
|
|
if err := dropTableColumns(sess, "team", "unit_types"); err != nil { |
|
|
return err |
|
|
return err |
|
|
} |
|
|
} |
|
|