summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2013-03-07 08:28:56 +0100
committerHelmut Grohne <helmut@subdivi.de>2013-03-07 08:28:56 +0100
commit827daf10eb510a00f9ca710a001f962524686520 (patch)
tree0abadcf1da68bb72e8a775c4e4122b41560b9fd0
parentb3d4bbae6fa2810daf3481d8ba99675ffe3bce9e (diff)
downloaddebian-dedup-827daf10eb510a00f9ca710a001f962524686520.tar.gz
schema.sql: annotat foreign keys of sharing
-rw-r--r--schema.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/schema.sql b/schema.sql
index 954b359..d0a27cf 100644
--- a/schema.sql
+++ b/schema.sql
@@ -4,6 +4,6 @@ CREATE TABLE dependency (package TEXT, required TEXT, FOREIGN KEY (package) REFE
CREATE INDEX content_package_index ON content (package);
CREATE INDEX content_hash_index ON content (hash);
-CREATE TABLE sharing (package1 TEXT, package2 TEXT, func1 TEXT, func2 TEXT, files INTEGER, size INTEGER);
+CREATE TABLE sharing (package1 TEXT, package2 TEXT, func1 TEXT, func2 TEXT, files INTEGER, size INTEGER, FOREIGN KEY (package1) REFERENCES package(package), FOREIGN KEY (package2) REFERENCES package(package));
CREATE INDEX sharing_insert_index ON sharing (package1, package2, func1, func2);
CREATE INDEX sharing_package_index ON sharing (package1);