P5-717 Remove positions of markers from database

This commit is contained in:
Rikard Bartholf
2016-06-30 09:47:37 +02:00
parent 414398de07
commit 9a9b3cdb3f
2 changed files with 17 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
-- General change: Adding a PK to inquiry_markers table
DO $$
BEGIN
BEGIN
ALTER TABLE inquiry_markers ADD PRIMARY KEY (id);
EXCEPTION
WHEN invalid_table_definition THEN RAISE NOTICE 'primary key for id already exists in inquiry_markers.';
END;
END;
$$