diff --git a/studio/src/main/resources/crafter/studio/database/createDDL.sql b/studio/src/main/resources/crafter/studio/database/createDDL.sql index de22cd9c0..abcd7fce6 100644 --- a/studio/src/main/resources/crafter/studio/database/createDDL.sql +++ b/studio/src/main/resources/crafter/studio/database/createDDL.sql @@ -217,7 +217,7 @@ CREATE TABLE _meta ( PRIMARY KEY (`version`) ) ; -INSERT INTO _meta (version, studio_id) VALUES ('5.0.0.23', UUID()) ; +INSERT INTO _meta (version, studio_id) VALUES ('5.0.0.24', UUID()) ; CREATE TABLE IF NOT EXISTS `audit` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT, diff --git a/studio/src/main/resources/crafter/studio/database/upgrade/5.0.x/5.0.0.23-to-5.0.0.24.sql b/studio/src/main/resources/crafter/studio/database/upgrade/5.0.x/5.0.0.23-to-5.0.0.24.sql new file mode 100644 index 000000000..bfe3f6b80 --- /dev/null +++ b/studio/src/main/resources/crafter/studio/database/upgrade/5.0.x/5.0.0.23-to-5.0.0.24.sql @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2007-2026 Crafter Software Corporation. All Rights Reserved. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as published by + * the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +UPDATE `audit` SET `operation` = 'APPROVE_PUBLISH_PACKAGE' WHERE `operation` = 'APPROVE' ; + +UPDATE `audit` SET `operation` = 'PUBLISH_ITEM_LIST_COMPLETE' WHERE `operation` = 'PUBLISHED' ; + +UPDATE `audit` SET `operation` = 'INITIAL_PUBLISH_COMPLETE' WHERE `operation` = 'INITIAL_PUBLISH' ; + +UPDATE `audit` SET `operation` = 'PUBLISH_ALL_COMPLETE' WHERE `operation` = 'PUBLISH_ALL' ; + +UPDATE `activity_stream` SET `action` = 'APPROVE_PUBLISH_PACKAGE' WHERE `action` = 'APPROVE' ; + +UPDATE `activity_stream` SET `action` = 'PUBLISH_ITEM_LIST_COMPLETE' WHERE `action` = 'PUBLISHED' ; + +UPDATE `activity_stream` SET `action` = 'INITIAL_PUBLISH_COMPLETE' WHERE `action` = 'INITIAL_PUBLISH' ; + +UPDATE `activity_stream` SET `action` = 'PUBLISH_ALL_COMPLETE' WHERE `action` = 'PUBLISH_ALL' ; + diff --git a/studio/src/main/resources/crafter/studio/upgrade/pipelines.yaml b/studio/src/main/resources/crafter/studio/upgrade/pipelines.yaml index 9a0da2c3e..ffa1fcccf 100644 --- a/studio/src/main/resources/crafter/studio/upgrade/pipelines.yaml +++ b/studio/src/main/resources/crafter/studio/upgrade/pipelines.yaml @@ -464,6 +464,10 @@ pipelines: nextVersion: 5.0-t - currentVersion: 4.5.0.0 nextVersion: 5.0-t + - currentVersion: 4.5.0.5 + nextVersion: 5.0-t + - currentVersion: 4.5.1.2 + nextVersion: 5.0-t # Entry point for 5.0 upgrade - currentVersion: 5.0-t nextVersion: 5.0-t2 @@ -647,6 +651,11 @@ pipelines: path: /configuration/global-permission-mappings-config.xml template: crafter/studio/upgrade/5.0.x/system/global-permission-mappings-config-v5.0.0.23.xslt commitDetails: Remove unused permissions + - currentVersion: 5.0.0.23 + nextVersion: 5.0.0.24 + operations: + - type: dbScriptUpgrader + filename: upgrade/5.0.x/5.0.0.23-to-5.0.0.24.sql # Pipeline to upgrade site repositories