summaryrefslogtreecommitdiffstats
path: root/src/db/snapshots.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/snapshots.rs')
-rw-r--r--src/db/snapshots.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/db/snapshots.rs b/src/db/snapshots.rs
index e227eca..7966c8b 100644
--- a/src/db/snapshots.rs
+++ b/src/db/snapshots.rs
@@ -44,7 +44,6 @@ pub struct SnapshotRow {
pub aur_commit: String,
pub recipe_hash: String,
pub srcinfo_json: String,
- pub files_json: String,
}
/// Find a snapshot by the commit it was taken at.
@@ -55,7 +54,7 @@ pub struct SnapshotRow {
pub fn snapshot_by_commit(db: &Db, pkgbase_id: i64, commit: &str) -> Result<Option<SnapshotRow>> {
db.read(|c| {
c.query_row(
- "SELECT id, aur_commit, recipe_hash, srcinfo_json, files_json FROM snapshot
+ "SELECT id, aur_commit, recipe_hash, srcinfo_json FROM snapshot
WHERE pkgbase_id=?1 AND aur_commit=?2",
params![pkgbase_id, commit],
|r| {
@@ -64,7 +63,6 @@ pub fn snapshot_by_commit(db: &Db, pkgbase_id: i64, commit: &str) -> Result<Opti
aur_commit: r.get(1)?,
recipe_hash: r.get(2)?,
srcinfo_json: r.get(3)?,
- files_json: r.get(4)?,
})
},
)
@@ -76,7 +74,7 @@ pub fn snapshot_by_commit(db: &Db, pkgbase_id: i64, commit: &str) -> Result<Opti
pub fn snapshot_by_id(db: &Db, id: i64) -> Result<Option<SnapshotRow>> {
db.read(|c| {
c.query_row(
- "SELECT id, aur_commit, recipe_hash, srcinfo_json, files_json FROM snapshot WHERE id=?1",
+ "SELECT id, aur_commit, recipe_hash, srcinfo_json FROM snapshot WHERE id=?1",
params![id],
|r| {
Ok(SnapshotRow {
@@ -84,7 +82,6 @@ pub fn snapshot_by_id(db: &Db, id: i64) -> Result<Option<SnapshotRow>> {
aur_commit: r.get(1)?,
recipe_hash: r.get(2)?,
srcinfo_json: r.get(3)?,
- files_json: r.get(4)?,
})
},
)