mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-24 17:35:43 +00:00
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
|
@ -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