Skip to content

Commit

Permalink
get deployment working again for new installations IQSS#6165
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Sep 12, 2019
1 parent 9f41601 commit 519662a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ALTER TABLE ONLY setting DROP CONSTRAINT setting_pkey ;

ALTER TABLE setting ADD COLUMN ID SERIAL PRIMARY KEY;
ALTER TABLE setting ADD COLUMN IF NOT EXISTS ID SERIAL PRIMARY KEY;

ALTER TABLE setting ADD COLUMN lang text;
ALTER TABLE setting ADD COLUMN IF NOT EXISTS lang text;

ALTER TABLE setting
ADD CONSTRAINT non_empty_lang
CHECK (lang <> '');

CREATE UNIQUE INDEX unique_settings
ON setting
(name, coalesce(lang, ''));
(name, coalesce(lang, ''));

0 comments on commit 519662a

Please sign in to comment.