aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/tables.sql
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-08-24 14:54:27 +0200
committerWojtek Kosior <koszko@koszko.org>2022-09-28 12:54:53 +0200
commitf1204084f5fd377e66f15b3f23e81e13a063512e (patch)
treebe091ab11ee13fddadb594fa7565c4ce23d4f7bf /src/hydrilla/proxy/tables.sql
parentd516b9decad07b940b3cd117fc4e353dd8bbe7d2 (diff)
downloadhaketilo-hydrilla-f1204084f5fd377e66f15b3f23e81e13a063512e.tar.gz
haketilo-hydrilla-f1204084f5fd377e66f15b3f23e81e13a063512e.zip
make Haketilo proxy recognize identical items when updating from repository
Diffstat (limited to 'src/hydrilla/proxy/tables.sql')
-rw-r--r--src/hydrilla/proxy/tables.sql13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/hydrilla/proxy/tables.sql b/src/hydrilla/proxy/tables.sql
index aa98081..863c989 100644
--- a/src/hydrilla/proxy/tables.sql
+++ b/src/hydrilla/proxy/tables.sql
@@ -176,18 +176,19 @@ CREATE TABLE mapping_statuses(
);
CREATE TABLE item_versions(
- item_version_id INTEGER PRIMARY KEY,
+ item_version_id INTEGER PRIMARY KEY,
- item_id INTEGER NOT NULL,
- version VARCHAR NOT NULL,
+ item_id INTEGER NOT NULL,
+ version VARCHAR NOT NULL,
-- "installed" determines whether item is INSTALLED, is NOT_INSTALLED or
-- it FAILED_TO_INSTALL when last tried. If "required" in a row of
-- "mapping_statuses is set to TRUE, the mapping version and all
-- resource versions corresponding to it are supposed to have
-- "installed" set to 'I'.
- installed CHAR(1) NOT NULL,
- repo_iteration_id INTEGER NOT NULL,
- definition BLOB NOT NULL,
+ installed CHAR(1) NOT NULL,
+ repo_iteration_id INTEGER NOT NULL,
+ definition BLOB NOT NULL,
+ definition_sha256 CHAR(64) NOT NULL,
UNIQUE (item_id, version, repo_iteration_id),
-- Constraint below needed to allow foreign key from "mapping_statuses".