Skip to content

Commit

Permalink
moved sql instructions for column 'editable' in table settings into a…
Browse files Browse the repository at this point in the history
… different sql script (to avoid modifying a script already applied).
  • Loading branch information
GeryNi committed Aug 13, 2024
1 parent 6a335ca commit 1db3823
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALTER TABLE settings ALTER COLUMN editable TYPE CHAR USING editable::char;

ALTER TABLE settings ALTER COLUMN editable SET DEFAULT 'y';
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,5 @@ INSERT INTO Settings (name, value, datatype, position, internal) SELECT distinct

INSERT INTO Settings (name, value, datatype, position, internal) SELECT distinct 'metadata/batchediting/accesslevel', 'Editor', 0, 12020, 'n' from settings WHERE NOT EXISTS (SELECT name FROM Settings WHERE name = 'metadata/batchediting/accesslevel');

ALTER TABLE settings
ALTER COLUMN editable TYPE CHAR USING editable::char;

ALTER TABLE settings
ALTER COLUMN editable SET DEFAULT 'y';

UPDATE Settings SET value='4.4.2' WHERE name='system/platform/version';
UPDATE Settings SET value='SNAPSHOT' WHERE name='system/platform/subVersion';

0 comments on commit 1db3823

Please sign in to comment.