mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-31 01:36:00 +02:00
set ephemeral to false by sql statement
This commit is contained in:
parent
082357379f
commit
1030081212
@ -12,5 +12,11 @@ func AddEphemeralToActionRunner(x *xorm.Engine) error {
|
|||||||
Ephemeral bool `xorm:"ephemeral"`
|
Ephemeral bool `xorm:"ephemeral"`
|
||||||
}
|
}
|
||||||
|
|
||||||
return x.Sync(new(ActionRunner))
|
if err := x.Sync(new(ActionRunner)); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
// update all records to set ephemeral to false
|
||||||
|
_, err := x.Exec("UPDATE `action_runner` SET `ephemeral` = false WHERE `ephemeral` IS NULL")
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user