diff options
Diffstat (limited to 'models/migrations/v69.go')
-rw-r--r-- | models/migrations/v69.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/models/migrations/v69.go b/models/migrations/v69.go index 8d964688ae..9a6e42e712 100644 --- a/models/migrations/v69.go +++ b/models/migrations/v69.go @@ -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 { return err } |