Skip to content

Commit

Permalink
Metawal / Updates for production db.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxprunayre committed Aug 13, 2024
1 parent 65513b5 commit 39df7e9
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,16 @@ 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 files
ALTER COLUMN content type oid USING content::oid;

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

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

ALTER TABLE spg_page ALTER COLUMN link TYPE text;

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 39df7e9

Please sign in to comment.