mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 22:23:50 +03:00
Also check for RepoID to be unique
This commit is contained in:
parent
f3e58f29b0
commit
fb1d0df791
1 changed files with 1 additions and 2 deletions
|
@ -8,10 +8,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// FollowingRepo represents a federated Repository Actor connected with a local Repo
|
// FollowingRepo represents a federated Repository Actor connected with a local Repo
|
||||||
// ToDo: We currently get database errors if different repos on the same server want to save the same federated repos in their list
|
|
||||||
type FollowingRepo struct {
|
type FollowingRepo struct {
|
||||||
ID int64 `xorm:"pk autoincr"`
|
ID int64 `xorm:"pk autoincr"`
|
||||||
RepoID int64 `xorm:"NOT NULL"`
|
RepoID int64 `xorm:"UNIQUE(federation_repo_mapping) NOT NULL"`
|
||||||
ExternalID string `xorm:"UNIQUE(federation_repo_mapping) NOT NULL"`
|
ExternalID string `xorm:"UNIQUE(federation_repo_mapping) NOT NULL"`
|
||||||
FederationHostID int64 `xorm:"UNIQUE(federation_repo_mapping) NOT NULL"`
|
FederationHostID int64 `xorm:"UNIQUE(federation_repo_mapping) NOT NULL"`
|
||||||
URI string
|
URI string
|
||||||
|
|
Loading…
Reference in a new issue