aboutsummaryrefslogtreecommitdiffstats
path: root/models/migrations/v1_23/v311.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v1_23/v311.go')
-rw-r--r--models/migrations/v1_23/v311.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/models/migrations/v1_23/v311.go b/models/migrations/v1_23/v311.go
index 0fc1ac8c0e..21293d83be 100644
--- a/models/migrations/v1_23/v311.go
+++ b/models/migrations/v1_23/v311.go
@@ -11,6 +11,9 @@ func AddTimeEstimateColumnToIssueTable(x *xorm.Engine) error {
type Issue struct {
TimeEstimate int64 `xorm:"NOT NULL DEFAULT 0"`
}
-
- return x.Sync(new(Issue))
+ _, err := x.SyncWithOptions(xorm.SyncOptions{
+ IgnoreConstrains: true,
+ IgnoreIndices: true,
+ }, new(Issue))
+ return err
}