From db2f896264d59c3c481f12c7552fbd1dc68ba22b Mon Sep 17 00:00:00 2001 From: Clemens Date: Tue, 13 Feb 2024 11:09:31 +0100 Subject: [PATCH] small fix by adding id as pk for FederatedUser --- models/user/federated_user.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/user/federated_user.go b/models/user/federated_user.go index a730a14645..5ac605b0b1 100644 --- a/models/user/federated_user.go +++ b/models/user/federated_user.go @@ -8,6 +8,7 @@ import ( ) type FederatedUser struct { + ID int64 `xorm:"pk autoincr"` UserID int64 `xorm:"NOT NULL"` ExternalID string `xorm:"TEXT UNIQUE(federation_mapping) NOT NULL"` FederationHostID int64 `xorm:"UNIQUE(federation_mapping) NOT NULL"`