Merge pull request 'models/forgejo_migrations: Gitea tables migration ID' (#2838) from earl-warren/forgejo:wip-forgejo-migrations-index into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2838 Reviewed-by: oliverpool <oliverpool@noreply.codeberg.org>
This commit is contained in:
commit
82ecfd7481
2 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ import (
|
||||||
|
|
||||||
func AddWikiBranchToRepository(x *xorm.Engine) error {
|
func AddWikiBranchToRepository(x *xorm.Engine) error {
|
||||||
type Repository struct {
|
type Repository struct {
|
||||||
ID int64
|
ID int64 `xorm:"pk autoincr"`
|
||||||
WikiBranch string
|
WikiBranch string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
|
|
||||||
func AddUserRepoUnitHintsSetting(x *xorm.Engine) error {
|
func AddUserRepoUnitHintsSetting(x *xorm.Engine) error {
|
||||||
type User struct {
|
type User struct {
|
||||||
ID int64
|
ID int64 `xorm:"pk autoincr"`
|
||||||
EnableRepoUnitHints bool `xorm:"NOT NULL DEFAULT true"`
|
EnableRepoUnitHints bool `xorm:"NOT NULL DEFAULT true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
return x.Sync(&User{})
|
return x.Sync(&User{})
|
||||||
|
|
Loading…
Reference in a new issue