summaryrefslogtreecommitdiffstats
path: root/models/forgejo_migrations/v1_20/v2.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/forgejo_migrations/v1_20/v2.go')
-rw-r--r--models/forgejo_migrations/v1_20/v2.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/models/forgejo_migrations/v1_20/v2.go b/models/forgejo_migrations/v1_20/v2.go
new file mode 100644
index 0000000..39f3b58
--- /dev/null
+++ b/models/forgejo_migrations/v1_20/v2.go
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: MIT
+
+package forgejo_v1_20 //nolint:revive
+
+import (
+ "xorm.io/xorm"
+)
+
+func CreateSemVerTable(x *xorm.Engine) error {
+ type ForgejoSemVer struct {
+ Version string
+ }
+
+ return x.Sync(new(ForgejoSemVer))
+}