summaryrefslogtreecommitdiffstats
path: root/create/postgresql/schema.sql
diff options
context:
space:
mode:
Diffstat (limited to 'create/postgresql/schema.sql')
-rw-r--r--create/postgresql/schema.sql4
1 files changed, 3 insertions, 1 deletions
diff --git a/create/postgresql/schema.sql b/create/postgresql/schema.sql
index ae0d476f..3c6195d4 100644
--- a/create/postgresql/schema.sql
+++ b/create/postgresql/schema.sql
@@ -349,9 +349,11 @@ CREATE TABLE services (
--
CREATE TABLE services_links (
+ linkid serial,
serviceupid int4 DEFAULT '0' NOT NULL,
servicedownid int4 DEFAULT '0' NOT NULL,
- soft int2 DEFAULT '0' NOT NULL
+ soft int2 DEFAULT '0' NOT NULL,
+ PRIMARY KEY (linkid)
);
CREATE INDEX services_links_serviceupid on services_links (serviceupid);