Added contact
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
This commit is contained in:
parent
4e16983f3b
commit
2a1b5c2518
|
@ -83,10 +83,10 @@ impl<'a> RequestGateway<'a> {
|
|||
let connection = self.settings.database.get_connection();
|
||||
|
||||
let sql = "
|
||||
SELECT C.name, C.vcs_type, V.api_root_url, O.owner_name, O.repo_name, C.version
|
||||
SELECT C.name, C.vcs_type, V.api_root_url, O.owner_name, O.repo_name, C.version, C.contact
|
||||
FROM Origins O
|
||||
JOIN Currents C ON O.name = C.name AND O.vcs_type = C.vcs_type
|
||||
JOIN VCSTYPES V ON O.vcs_type = V.vcs_type";
|
||||
JOIN VcsTypes V ON O.vcs_type = V.vcs_type";
|
||||
|
||||
let mut prepared = connection.prepare(sql).unwrap();
|
||||
|
||||
|
@ -103,6 +103,7 @@ JOIN VCSTYPES V ON O.vcs_type = V.vcs_type";
|
|||
owner_name: row.get(3).unwrap(),
|
||||
repo_name: row.get(4).unwrap(),
|
||||
version: row.get(5).unwrap(),
|
||||
contact: row.get(6).unwrap(),
|
||||
})
|
||||
})
|
||||
.unwrap();
|
||||
|
@ -195,6 +196,7 @@ pub mod models {
|
|||
pub vcs_type: VcsType,
|
||||
pub api_root_url: String,
|
||||
pub version: String,
|
||||
pub contact: String,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ CREATE TABLE IF NOT EXISTS Currents
|
|||
name NVARCHAR(50),
|
||||
version NVARCHAR(50),
|
||||
vcs_type NVARCHAR(20),
|
||||
contact NVARCHAR(120),
|
||||
PRIMARY KEY (name, vcs_type),
|
||||
FOREIGN KEY (name, vcs_type) REFERENCES Origins (name, vcs_type),
|
||||
FOREIGN KEY (vcs_type) REFERENCES VcsTypes (vcs_type)
|
||||
|
|
Loading…
Reference in New Issue