Add migration for pronouns

This commit is contained in:
hazycora 2024-02-23 16:33:02 -06:00
parent bbf906eccc
commit 204dd9e300
No known key found for this signature in database
GPG key ID: 215AF1F81F86940E
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,16 @@
// Copyright 2024 The Forgejo Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package v1_22 //nolint
import (
"xorm.io/xorm"
)
func AddPronounsToUser(x *xorm.Engine) error {
type User struct {
Pronouns string
}
return x.Sync(&User{})
}