mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-10-26 12:01:08 +00:00
[DB] forgejo migration v2: create the forgejo_sem_ver table
(cherry picked from commit86b26436af) (cherry picked from commit479cba59ac) (cherry picked from commit4765f9a889) (cherry picked from commitaf771410bf) (cherry picked from commitd1ea9305d8) (cherry picked from commitf77e1bb7ab) (cherry picked from commit0b95f8fe89) (cherry picked from commit4f8fb2390a) (cherry picked from commit8ea0e22ff6) (cherry picked from commit43ac19ac59) (cherry picked from commit0d2f63df4f) (cherry picked from commitd02a8036fd) (cherry picked from commit1fe4c7db94) (cherry picked from commitd641cdeaf0) (cherry picked from commit10e8a4f8b8) (cherry picked from commit8097bc40b3) (cherry picked from commitee5cb37d7e) (cherry picked from commit26d93b8e49) (cherry picked from commitbc73195e59) (cherry picked from commita763fa5de2) (cherry picked from commit4b000cb435) (cherry picked from commit9f6d20e73f) (cherry picked from commitb5001edeea)
This commit is contained in:
parent
c6e5a2962c
commit
7632171832
2 changed files with 20 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
|
||||
forgejo_v1_20 "code.gitea.io/gitea/models/forgejo_migrations/v1_20"
|
||||
"code.gitea.io/gitea/modules/git"
|
||||
"code.gitea.io/gitea/modules/log"
|
||||
"code.gitea.io/gitea/modules/setting"
|
||||
|
|
@ -34,7 +35,10 @@ func NewMigration(desc string, fn func(*xorm.Engine) error) *Migration {
|
|||
|
||||
// This is a sequence of additional Forgejo migrations.
|
||||
// Add new migrations to the bottom of the list.
|
||||
var migrations = []*Migration{}
|
||||
var migrations = []*Migration{
|
||||
// v1 -> v2
|
||||
NewMigration("create the forgejo_sem_ver table", forgejo_v1_20.CreateSemVerTable),
|
||||
}
|
||||
|
||||
// GetCurrentDBVersion returns the current Forgejo database version.
|
||||
func GetCurrentDBVersion(x *xorm.Engine) (int64, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue