diff --git a/models/repo/following_repo.go b/models/repo/following_repo.go index f3b3a57406..b5c932ef52 100644 --- a/models/repo/following_repo.go +++ b/models/repo/following_repo.go @@ -12,7 +12,7 @@ import ( type FollowingRepo struct { ID int64 `xorm:"pk autoincr"` RepoID int64 `xorm:"NOT NULL"` - ExternalID string `xorm:"TEXT UNIQUE(federation_repo_mapping) NOT NULL"` + ExternalID string `xorm:"UNIQUE(federation_repo_mapping) NOT NULL"` FederationHostID int64 `xorm:"UNIQUE(federation_repo_mapping) NOT NULL"` URI string } diff --git a/models/user/federated_user.go b/models/user/federated_user.go index 7c8fe7c8ad..1fc42c3c32 100644 --- a/models/user/federated_user.go +++ b/models/user/federated_user.go @@ -10,7 +10,7 @@ import ( type FederatedUser struct { ID int64 `xorm:"pk autoincr"` UserID int64 `xorm:"NOT NULL"` - ExternalID string `xorm:"TEXT UNIQUE(federation_user_mapping) NOT NULL"` + ExternalID string `xorm:"UNIQUE(federation_user_mapping) NOT NULL"` FederationHostID int64 `xorm:"UNIQUE(federation_user_mapping) NOT NULL"` }