diff options
author | Helmut Grohne <helmut@subdivi.de> | 2013-03-07 08:28:56 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2013-03-07 08:28:56 +0100 |
commit | 827daf10eb510a00f9ca710a001f962524686520 (patch) | |
tree | 0abadcf1da68bb72e8a775c4e4122b41560b9fd0 | |
parent | b3d4bbae6fa2810daf3481d8ba99675ffe3bce9e (diff) | |
download | debian-dedup-827daf10eb510a00f9ca710a001f962524686520.tar.gz |
schema.sql: annotat foreign keys of sharing
-rw-r--r-- | schema.sql | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |