mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 18:04:14 +01:00
Add ToDo for storing federated repos
We need to check whether federated repos already exist in db. This way multiple repos on a server (forks) can have the same federated repos.
This commit is contained in:
parent
45cddb4ac7
commit
01e9853161
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// FederatedRepo represents a federated Repository Actor connected with a local Repo
|
// FederatedRepo 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 FederatedRepo struct {
|
type FederatedRepo struct {
|
||||||
ID int64 `xorm:"pk autoincr"`
|
ID int64 `xorm:"pk autoincr"`
|
||||||
RepoID int64 `xorm:"NOT NULL"`
|
RepoID int64 `xorm:"NOT NULL"`
|
||||||
|
|
Loading…
Reference in a new issue