add migration & enhance int-test

This commit is contained in:
Michael Jerger 2024-05-16 18:25:16 +02:00
parent 1c7a9b00be
commit b2c3eb1644
5 changed files with 41 additions and 4 deletions

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