Skip to content

Commit

Permalink
added migration scripts in repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeryNi committed Aug 13, 2024
1 parent 39df7e9 commit 6a335ca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ ALTER TABLE spg_page ALTER COLUMN link TYPE text;

ALTER TABLE Languages DROP COLUMN isdefault;

ALTER TABLE files ALTER COLUMN content TYPE oid USING content::oid;
ALTER TABLE spg_page ALTER COLUMN link TYPE text USING link::text;

UPDATE Settings SET value='4.2.5' WHERE name='system/platform/version';
UPDATE Settings SET value='SNAPSHOT' WHERE name='system/platform/subVersion';
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,11 @@ 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';
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
UPDATE Settings SET value='4.4.3' WHERE name='system/platform/version';
UPDATE Settings SET value='0' WHERE name='system/platform/subVersion';


INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('system/documentation/url', 'https://docs.geonetwork-opensource.org/{{version}}/{{lang}}', 0, 570, 'n');
INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('system/userFeedback/metadata/enable', 'false', 2, 1913, 'n');

0 comments on commit 6a335ca

Please sign in to comment.