summaryrefslogtreecommitdiff
path: root/schema.sql
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2013-09-07 21:04:40 +0200
committerHelmut Grohne <helmut@subdivi.de>2013-09-07 21:04:40 +0200
commit7f3d8c5098d23bb43b86e060700170cc41cd22aa (patch)
tree5e0ee4d269259b4b0d205d1f89895d8f46cccf93 /schema.sql
parent49cac8bdae0ec787372d227545411ef14905d6a8 (diff)
downloaddebian-dedup-7f3d8c5098d23bb43b86e060700170cc41cd22aa.tar.gz
permit multiple architectures per package
While the importer can easily cope with this change, the web presentation still needs fixing. It works somewhat now.
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/schema.sql b/schema.sql
index 2ab7ca7..7098a71 100644
--- a/schema.sql
+++ b/schema.sql
@@ -1,4 +1,4 @@
-CREATE TABLE package (id INTEGER PRIMARY KEY, name TEXT UNIQUE, version TEXT, architecture TEXT, source TEXT);
+CREATE TABLE package (id INTEGER PRIMARY KEY, name TEXT, version TEXT, architecture TEXT, source TEXT, UNIQUE (name, architecture));
CREATE TABLE content (id INTEGER PRIMARY KEY, pid INTEGER, filename TEXT, size INTEGER, FOREIGN KEY (pid) REFERENCES package(id) ON DELETE CASCADE);
CREATE TABLE function (id INTEGER PRIMARY KEY, name TEXT UNIQUE NOT NULL, eqclass INTEGER);
INSERT INTO function (name, eqclass) VALUES ("sha512", 1), ("gzip_sha512", 1), ("png_sha512", 2), ("gif_sha512", 2);