mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 16:47:30 +00:00
Also check for RepoID to be unique
This commit is contained in:
parent
f3e58f29b0
commit
fb1d0df791
|
@ -8,10 +8,9 @@ import (
|
|||
)
|
||||
|
||||
// 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 {
|
||||
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"`
|
||||
FederationHostID int64 `xorm:"UNIQUE(federation_repo_mapping) NOT NULL"`
|
||||
URI string
|
||||
|
|
Loading…
Reference in a new issue