forked from kevadesu/forgejo
add migration & enhance int-test
This commit is contained in:
parent
1c7a9b00be
commit
b2c3eb1644
5 changed files with 41 additions and 4 deletions
14
models/forgejo_migrations/v17.go
Normal file
14
models/forgejo_migrations/v17.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
// Copyright 2024 The Forgejo Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package forgejo_migrations //nolint:revive
|
||||
|
||||
import "xorm.io/xorm"
|
||||
|
||||
func AddNormalizedFederatedURIToUser(x *xorm.Engine) error {
|
||||
type User struct {
|
||||
ID int64 `xorm:"pk autoincr"`
|
||||
NormalizedFederatedURI string
|
||||
}
|
||||
return x.Sync(&User{})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue