gitea源码

1234567891011121314151617181920
  1. // Copyright 2025 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_24
  4. import (
  5. "xorm.io/xorm"
  6. )
  7. func AddEphemeralToActionRunner(x *xorm.Engine) error {
  8. type ActionRunner struct {
  9. Ephemeral bool `xorm:"ephemeral NOT NULL DEFAULT false"`
  10. }
  11. _, err := x.SyncWithOptions(xorm.SyncOptions{
  12. IgnoreConstrains: true,
  13. IgnoreIndices: true,
  14. }, new(ActionRunner))
  15. return err
  16. }