aboutsummaryrefslogtreecommitdiffstats
path: root/models/migrations/v190.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v190.go')
-rw-r--r--models/migrations/v190.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/models/migrations/v190.go b/models/migrations/v190.go
new file mode 100644
index 0000000000..8d1fba8373
--- /dev/null
+++ b/models/migrations/v190.go
@@ -0,0 +1,24 @@
+// Copyright 2021 The Gitea Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
+package migrations
+
+import (
+ "fmt"
+
+ "xorm.io/xorm"
+)
+
+func addAgitFlowPullRequest(x *xorm.Engine) error {
+ type PullRequestFlow int
+
+ type PullRequest struct {
+ Flow PullRequestFlow `xorm:"NOT NULL DEFAULT 0"`
+ }
+
+ if err := x.Sync2(new(PullRequest)); err != nil {
+ return fmt.Errorf("sync2: %v", err)
+ }
+ return nil
+}