summaryrefslogtreecommitdiffstats
path: root/models/forgejo_migrations/v17.go
blob: d6e2983d00fc5fcae9aab0586a358f05727b1d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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{})
}