We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0823573 commit 1030081Copy full SHA for 1030081
models/migrations/v1_24/v314.go
@@ -12,5 +12,11 @@ func AddEphemeralToActionRunner(x *xorm.Engine) error {
12
Ephemeral bool `xorm:"ephemeral"`
13
}
14
15
- return x.Sync(new(ActionRunner))
+ if err := x.Sync(new(ActionRunner)); err != nil {
16
+ return err
17
+ }
18
+
19
+ // update all records to set ephemeral to false
20
+ _, err := x.Exec("UPDATE `action_runner` SET `ephemeral` = false WHERE `ephemeral` IS NULL")
21
22
0 commit comments