From a08796a5c3bd5abbb2b8efd0e7d96d1a451b8b31 Mon Sep 17 00:00:00 2001 From: Sansar Choinyambuu Date: Mon, 5 Sep 2011 17:50:49 +0200 Subject: [PATCH] Added directory column with default value of zero into file_hashes table --- src/libimcv/plugins/imv_attestation/tables.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libimcv/plugins/imv_attestation/tables.sql b/src/libimcv/plugins/imv_attestation/tables.sql index 0407d1e17..8cc0e5588 100644 --- a/src/libimcv/plugins/imv_attestation/tables.sql +++ b/src/libimcv/plugins/imv_attestation/tables.sql @@ -27,9 +27,10 @@ CREATE TABLE product_file ( DROP TABLE IF EXISTS file_hashes; CREATE TABLE file_hashes ( file INTEGER NOT NULL, + directory INTEGER DEFAULT 0, product INTEGER NOT NULL, algo INTEGER NOT NULL, hash BLOB NOT NULL, - PRIMARY KEY(file, product, algo) + PRIMARY KEY(file, directory, product, algo) );