From 2ac448beb56dde94bb5081a329b3acf4e3633552 Mon Sep 17 00:00:00 2001 From: Jody Garnett Date: Mon, 15 Apr 2024 16:48:06 +0200 Subject: [PATCH] Fix sql syntax for migrate to 4.4.4 script (#7956) --- .../WEB-INF/classes/setup/sql/migrate/v444/migrate-default.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v444/migrate-default.sql b/web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v444/migrate-default.sql index 4b8ecffc2f9..96beda1f4d0 100644 --- a/web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v444/migrate-default.sql +++ b/web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v444/migrate-default.sql @@ -3,5 +3,5 @@ UPDATE Metadata SET data = replace(data, 'http://standards.iso.org/iso/19115/-3/ UPDATE Settings SET value='4.4.4' WHERE name='system/platform/version'; UPDATE Settings SET value='SNAPSHOT' WHERE name='system/platform/subVersion'; -UPDATE settings SET name='metadata/history/enabled' WHERE name='system/metadata/history/enabled' +UPDATE settings SET name='metadata/history/enabled' WHERE name='system/metadata/history/enabled'; INSERT INTO Settings (name, value, datatype, position, internal) SELECT distinct 'metadata/history/accesslevel', 'Editor', 0, 12021, 'n' from settings WHERE NOT EXISTS (SELECT name FROM Settings WHERE name = 'metadata/history/accesslevel');