summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/Pg-database.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/Pg-database.sql b/sql/Pg-database.sql
index 41775a39..45cfe827 100644
--- a/sql/Pg-database.sql
+++ b/sql/Pg-database.sql
@@ -175,7 +175,7 @@ CREATE TABLE company_to_location (
location_id integer references location(id) not null,
location_class integer not null references location_class(id),
company_id integer not null references company(id) ON DELETE CASCADE,
- PRIMARY KEY(location_id,company_id));
+ PRIMARY KEY(location_id,company_id, location_class));
COMMENT ON TABLE company_to_location IS
$$ This table is used for locations generic to companies. For contract-bound