diff options
author | Helmut Grohne <helmut@subdivi.de> | 2013-09-07 21:04:40 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2013-09-07 21:04:40 +0200 |
commit | 7f3d8c5098d23bb43b86e060700170cc41cd22aa (patch) | |
tree | 5e0ee4d269259b4b0d205d1f89895d8f46cccf93 /schema.sql | |
parent | 49cac8bdae0ec787372d227545411ef14905d6a8 (diff) | |
download | debian-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.sql | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |