aboutsummaryrefslogtreecommitdiffstats
path: root/models/migrations/v1_24/v315.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v1_24/v315.go')
-rw-r--r--models/migrations/v1_24/v315.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/models/migrations/v1_24/v315.go b/models/migrations/v1_24/v315.go
index aefb872d0f..22a72c31e9 100644
--- a/models/migrations/v1_24/v315.go
+++ b/models/migrations/v1_24/v315.go
@@ -11,6 +11,9 @@ func AddEphemeralToActionRunner(x *xorm.Engine) error {
type ActionRunner struct {
Ephemeral bool `xorm:"ephemeral NOT NULL DEFAULT false"`
}
-
- return x.Sync(new(ActionRunner))
+ _, err := x.SyncWithOptions(xorm.SyncOptions{
+ IgnoreConstrains: true,
+ IgnoreIndices: true,
+ }, new(ActionRunner))
+ return err
}