diff options
Diffstat (limited to 'models')
-rw-r--r-- | models/migrations/v64.go | 8 | ||||
-rw-r--r-- | models/migrations/v69.go | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/models/migrations/v64.go b/models/migrations/v64.go index 67ce3a9196..5958cd8f82 100644 --- a/models/migrations/v64.go +++ b/models/migrations/v64.go @@ -120,6 +120,14 @@ func addMultipleAssignees(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, "issue", "assignee_id"); err != nil { return err } 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 } |