1
0
Fork 0
forked from forgejo/forgejo

[DB] forgejo migration v2: create the forgejo_sem_ver table

(cherry picked from commit 86b26436af)
(cherry picked from commit 479cba59ac)
(cherry picked from commit 4765f9a889)
(cherry picked from commit af771410bf)
This commit is contained in:
Earl Warren 2023-08-08 23:52:37 +02:00
parent b2fc2a7c13
commit d1ea9305d8
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 20 additions and 1 deletions

View file

@ -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))
}