Added directory column with default value of zero into file_hashes table

This commit is contained in:
Sansar Choinyambuu
2011-09-08 12:08:16 +02:00
committed by Andreas Steffen
parent 83bbce1885
commit a08796a5c3
@@ -27,9 +27,10 @@ CREATE TABLE product_file (
DROP TABLE IF EXISTS file_hashes; DROP TABLE IF EXISTS file_hashes;
CREATE TABLE file_hashes ( CREATE TABLE file_hashes (
file INTEGER NOT NULL, file INTEGER NOT NULL,
directory INTEGER DEFAULT 0,
product INTEGER NOT NULL, product INTEGER NOT NULL,
algo INTEGER NOT NULL, algo INTEGER NOT NULL,
hash BLOB NOT NULL, hash BLOB NOT NULL,
PRIMARY KEY(file, product, algo) PRIMARY KEY(file, directory, product, algo)
); );