mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 23:33:15 -05:00
models/forgejo_migrations: Gitea tables migration ID
Sync() will act on the given struct and the ID field should be exactly as it is in the Gitea migration when a Gitea table is modified.
This commit is contained in:
parent
d5a3f14063
commit
d6eab2b586
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,7 +9,7 @@ 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"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue