Skip to content

Commit

Permalink
Merge pull request #6166 from IQSS/6165-cannot-deploy
Browse files Browse the repository at this point in the history
get deployment working again for new installations #6165
  • Loading branch information
kcondon authored Sep 13, 2019
2 parents 9f41601 + 519662a commit 22ee5e5
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 22ee5e5

Please sign in to comment.