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:
Earl Warren 2024-03-27 10:03:20 +00:00
commit 82ecfd7481
2 changed files with 3 additions and 3 deletions

View file

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

View file

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