Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-25 11:16:11 +01:00

small fix by adding id as pk for FederatedUser

This commit is contained in:
Clemens 2024-02-13 11:09:31 +01:00
parent 086c66b06a
commit db2f896264

View file

@ -8,6 +8,7 @@ import (
) )
type FederatedUser struct { type FederatedUser struct {
ID int64 `xorm:"pk autoincr"`
UserID int64 `xorm:"NOT NULL"` UserID int64 `xorm:"NOT NULL"`
ExternalID string `xorm:"TEXT UNIQUE(federation_mapping) NOT NULL"` ExternalID string `xorm:"TEXT UNIQUE(federation_mapping) NOT NULL"`
FederationHostID int64 `xorm:"UNIQUE(federation_mapping) NOT NULL"` FederationHostID int64 `xorm:"UNIQUE(federation_mapping) NOT NULL"`