mob-next: how to store port & schema

This commit is contained in:
Michael Jerger 2024-03-26 07:58:04 +01:00
parent 5b8173f660
commit cf8a30efac
3 changed files with 16 additions and 3 deletions

View file

@ -13,6 +13,8 @@ type FederatedRepo struct {
RepoID int64 `xorm:"NOT NULL"`
ExternalID string `xorm:"TEXT UNIQUE(federation_repo_mapping) NOT NULL"`
FederationHostID int64 `xorm:"UNIQUE(federation_repo_mapping) NOT NULL"`
Schema string
Port string
}
func NewFederatedRepo(repoID int64, externalID string, federationHostID int64) (FederatedRepo, error) {