From 0cbf6d4ed0efa5c975b9926b04628ece7d14599d Mon Sep 17 00:00:00 2001 From: Elia Mezzano Date: Mon, 8 Dec 2025 23:43:39 +0100 Subject: [PATCH] ESB-257 Added preconditions to Liquibase migrations --- .../liquibase/admin-console/changeSetServ.xml | 2 +- .../00000000000001_dataServ_production.xml | 4 +++- .../serv/00000000000001_schemaServ.xml | 12 +++++++++--- .../00000000000001_dataPort_production.xml | 4 +++- .../jacms/port/00000000000001_schemaPort.xml | 11 ++++++++++- .../jacms/port/00000000000002_schemaPort.xml | 2 +- .../20230224000000_jacms_social_tag_roles.xml | 8 +++++++- .../00000000000001_dataPort_production.xml | 3 ++- .../00000000000001_dataPort_production.xml | 3 ++- .../port/00000000000001_schemaPort.xml | 9 ++++++++- .../port/00000000000002_schemaPort.xml | 2 +- .../port/20221004100000_messages_system.xml | 7 ++++++- .../20230224000000_default_profile_roles.xml | 7 ++++++- .../20230407000000_disable_content_menu.xml | 9 ++++++++- .../00000000000001_dataServ_production.xml | 3 ++- .../serv/00000000000001_schemaServ.xml | 18 ++++++++++++++++-- .../serv/00000000000002_schemaServ.xml | 2 +- .../serv/20230228000000_unused_permission.xml | 7 ++++++- .../00000000000001_dataPort_production.xml | 3 ++- .../00000000000001_dataPort_production.xml | 3 ++- .../jpseo/port/00000000000001_schemaPort.xml | 9 ++++++++- .../port/00000000000001_schemaPort.xml | 9 ++++++++- .../00000000000001_dataPort_production.xml | 3 ++- .../port/20221004100000_errorpage_config.xml | 11 ++++++++++- ...214000000_legacy_navigation_menu_widget.xml | 8 +++++++- 25 files changed, 131 insertions(+), 28 deletions(-) diff --git a/admin-console/src/main/resources/liquibase/admin-console/changeSetServ.xml b/admin-console/src/main/resources/liquibase/admin-console/changeSetServ.xml index 02c19969e0..b8d9486e31 100644 --- a/admin-console/src/main/resources/liquibase/admin-console/changeSetServ.xml +++ b/admin-console/src/main/resources/liquibase/admin-console/changeSetServ.xml @@ -13,7 +13,7 @@ - + diff --git a/admin-console/src/main/resources/liquibase/admin-console/serv/00000000000001_dataServ_production.xml b/admin-console/src/main/resources/liquibase/admin-console/serv/00000000000001_dataServ_production.xml index 1da53851b7..c356f7df65 100644 --- a/admin-console/src/main/resources/liquibase/admin-console/serv/00000000000001_dataServ_production.xml +++ b/admin-console/src/main/resources/liquibase/admin-console/serv/00000000000001_dataServ_production.xml @@ -5,13 +5,15 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_adminconsole_dataServ_restore' SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_adminconsole_dataServ_production' AND filename = 'liquibase/admin-console/changeSetServ.xml' + + SELECT COUNT(*) FROM authusershortcuts WHERE username = 'admin' diff --git a/admin-console/src/main/resources/liquibase/admin-console/serv/00000000000001_schemaServ.xml b/admin-console/src/main/resources/liquibase/admin-console/serv/00000000000001_schemaServ.xml index 84d9cc1524..e709b0ed00 100644 --- a/admin-console/src/main/resources/liquibase/admin-console/serv/00000000000001_schemaServ.xml +++ b/admin-console/src/main/resources/liquibase/admin-console/serv/00000000000001_schemaServ.xml @@ -5,8 +5,14 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - - + + + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_adminconsole_schemaServ' + + + + + @@ -15,7 +21,7 @@ - + diff --git a/cms-plugin/src/main/resources/liquibase/jacms/port/00000000000001_dataPort_production.xml b/cms-plugin/src/main/resources/liquibase/jacms/port/00000000000001_dataPort_production.xml index 4419780f46..a0dd04431d 100644 --- a/cms-plugin/src/main/resources/liquibase/jacms/port/00000000000001_dataPort_production.xml +++ b/cms-plugin/src/main/resources/liquibase/jacms/port/00000000000001_dataPort_production.xml @@ -5,14 +5,16 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_jacms_dataPort_production' SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_jacms_dataPort_restore' SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_jacms_dataPort_production' AND filename = 'liquibase/jacms/changeSetPort.xml' + SELECT COUNT(*) FROM sysconfig WHERE item = 'contentTypes' diff --git a/cms-plugin/src/main/resources/liquibase/jacms/port/00000000000001_schemaPort.xml b/cms-plugin/src/main/resources/liquibase/jacms/port/00000000000001_schemaPort.xml index f2ed61b8e7..8c20182ddd 100644 --- a/cms-plugin/src/main/resources/liquibase/jacms/port/00000000000001_schemaPort.xml +++ b/cms-plugin/src/main/resources/liquibase/jacms/port/00000000000001_schemaPort.xml @@ -5,7 +5,16 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + + + + + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_jacms_schemaPort' + + + + + diff --git a/cms-plugin/src/main/resources/liquibase/jacms/port/00000000000002_schemaPort.xml b/cms-plugin/src/main/resources/liquibase/jacms/port/00000000000002_schemaPort.xml index c582401ba0..3ae269a689 100644 --- a/cms-plugin/src/main/resources/liquibase/jacms/port/00000000000002_schemaPort.xml +++ b/cms-plugin/src/main/resources/liquibase/jacms/port/00000000000002_schemaPort.xml @@ -5,7 +5,7 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + diff --git a/cms-plugin/src/main/resources/liquibase/jacms/port/20230224000000_jacms_social_tag_roles.xml b/cms-plugin/src/main/resources/liquibase/jacms/port/20230224000000_jacms_social_tag_roles.xml index 86e24bb066..c3ef137b79 100644 --- a/cms-plugin/src/main/resources/liquibase/jacms/port/20230224000000_jacms_social_tag_roles.xml +++ b/cms-plugin/src/main/resources/liquibase/jacms/port/20230224000000_jacms_social_tag_roles.xml @@ -5,7 +5,13 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + + + + + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '20230224000000_jacms_social_tag_roles' + SELECT COUNT(*) FROM sysconfig WHERE item = 'contentTypesRoles' + diff --git a/contentscheduler-plugin/src/main/resources/liquibase/jpcontentscheduler/port/00000000000001_dataPort_production.xml b/contentscheduler-plugin/src/main/resources/liquibase/jpcontentscheduler/port/00000000000001_dataPort_production.xml index 79de0306b4..2cc1968752 100644 --- a/contentscheduler-plugin/src/main/resources/liquibase/jpcontentscheduler/port/00000000000001_dataPort_production.xml +++ b/contentscheduler-plugin/src/main/resources/liquibase/jpcontentscheduler/port/00000000000001_dataPort_production.xml @@ -5,13 +5,14 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_jpcontentscheduler_dataPort_restore' SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_jpcontentscheduler_dataPort_production' AND filename = 'liquibase/changeSetPort.xml' + SELECT COUNT(*) FROM sysconfig WHERE item = 'cthread_config' diff --git a/engine/src/main/resources/liquibase/port/00000000000001_dataPort_production.xml b/engine/src/main/resources/liquibase/port/00000000000001_dataPort_production.xml index e7729f7f94..7c7fb13472 100644 --- a/engine/src/main/resources/liquibase/port/00000000000001_dataPort_production.xml +++ b/engine/src/main/resources/liquibase/port/00000000000001_dataPort_production.xml @@ -5,13 +5,14 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_dataPort_restore' SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_dataPort_production' AND filename = 'liquibase/changeSetPort.xml' + SELECT COUNT(*) FROM categories WHERE catcode = 'home' diff --git a/engine/src/main/resources/liquibase/port/00000000000001_schemaPort.xml b/engine/src/main/resources/liquibase/port/00000000000001_schemaPort.xml index 141b2c037e..07028fa4e9 100644 --- a/engine/src/main/resources/liquibase/port/00000000000001_schemaPort.xml +++ b/engine/src/main/resources/liquibase/port/00000000000001_schemaPort.xml @@ -5,7 +5,14 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + + + + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_schemaPort' + + + + diff --git a/engine/src/main/resources/liquibase/port/00000000000002_schemaPort.xml b/engine/src/main/resources/liquibase/port/00000000000002_schemaPort.xml index 4bd219bd1f..98026c562e 100644 --- a/engine/src/main/resources/liquibase/port/00000000000002_schemaPort.xml +++ b/engine/src/main/resources/liquibase/port/00000000000002_schemaPort.xml @@ -5,7 +5,7 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + diff --git a/engine/src/main/resources/liquibase/port/20221004100000_messages_system.xml b/engine/src/main/resources/liquibase/port/20221004100000_messages_system.xml index 62adc66b7b..281d04730f 100644 --- a/engine/src/main/resources/liquibase/port/20221004100000_messages_system.xml +++ b/engine/src/main/resources/liquibase/port/20221004100000_messages_system.xml @@ -5,7 +5,12 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + + + + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '20221004100000_messages_system' + SELECT COUNT(*) FROM localstrings WHERE keycode = 'USER_UNAUTHORIZED' + diff --git a/engine/src/main/resources/liquibase/port/20230224000000_default_profile_roles.xml b/engine/src/main/resources/liquibase/port/20230224000000_default_profile_roles.xml index e20f478eca..c4cdd2013e 100644 --- a/engine/src/main/resources/liquibase/port/20230224000000_default_profile_roles.xml +++ b/engine/src/main/resources/liquibase/port/20230224000000_default_profile_roles.xml @@ -5,7 +5,12 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + + + + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '20230224000000_default_profile_roles' + SELECT COUNT(*) FROM sysconfig WHERE item = 'userProfileTypesRoles' + diff --git a/engine/src/main/resources/liquibase/port/20230407000000_disable_content_menu.xml b/engine/src/main/resources/liquibase/port/20230407000000_disable_content_menu.xml index 0b158d95f6..de1f8cb540 100644 --- a/engine/src/main/resources/liquibase/port/20230407000000_disable_content_menu.xml +++ b/engine/src/main/resources/liquibase/port/20230407000000_disable_content_menu.xml @@ -5,7 +5,14 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + + + + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '20230407000000_disable_content_menu' + + + + - + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_dataServ_restore' SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_dataServ_production' AND filename = 'liquibase/changeSetServ.xml' + SELECT COUNT(*) FROM authgroups WHERE groupname = 'administrators' diff --git a/engine/src/main/resources/liquibase/serv/00000000000001_schemaServ.xml b/engine/src/main/resources/liquibase/serv/00000000000001_schemaServ.xml index 0d296d08a7..ae6b002b6f 100644 --- a/engine/src/main/resources/liquibase/serv/00000000000001_schemaServ.xml +++ b/engine/src/main/resources/liquibase/serv/00000000000001_schemaServ.xml @@ -5,7 +5,14 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + + + + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_schemaServ' + + + + @@ -327,7 +334,14 @@ CREATE TABLE api_oauth_consumers (consumerkey VARCHAR(100) NOT NULL, consumersecret VARCHAR(100) NOT NULL, name VARCHAR(255), description CLOB NOT NULL, callbackurl CLOB, scope VARCHAR(255), authorizedgranttypes VARCHAR(255), expirationdate TIMESTAMP, issueddate TIMESTAMP, CONSTRAINT PK_API_OAUTH_CONSUMERS PRIMARY KEY (consumerkey)) - + + + + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_schemaServ_consumers' + + + + diff --git a/engine/src/main/resources/liquibase/serv/00000000000002_schemaServ.xml b/engine/src/main/resources/liquibase/serv/00000000000002_schemaServ.xml index 266555c35d..67288a46f9 100644 --- a/engine/src/main/resources/liquibase/serv/00000000000002_schemaServ.xml +++ b/engine/src/main/resources/liquibase/serv/00000000000002_schemaServ.xml @@ -5,7 +5,7 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + diff --git a/engine/src/main/resources/liquibase/serv/20230228000000_unused_permission.xml b/engine/src/main/resources/liquibase/serv/20230228000000_unused_permission.xml index a6f47b074e..99a7e3e2b6 100644 --- a/engine/src/main/resources/liquibase/serv/20230228000000_unused_permission.xml +++ b/engine/src/main/resources/liquibase/serv/20230228000000_unused_permission.xml @@ -5,7 +5,12 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + + + + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '20230228000000_unused_permission' + + rolename='reviewer' diff --git a/mail-plugin/src/main/resources/liquibase/jpmail/port/00000000000001_dataPort_production.xml b/mail-plugin/src/main/resources/liquibase/jpmail/port/00000000000001_dataPort_production.xml index e31bca8c9c..aaecdbb87e 100644 --- a/mail-plugin/src/main/resources/liquibase/jpmail/port/00000000000001_dataPort_production.xml +++ b/mail-plugin/src/main/resources/liquibase/jpmail/port/00000000000001_dataPort_production.xml @@ -5,13 +5,14 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_jpmail_dataPort_restore' SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_jpmail_dataPort_production' AND filename = 'liquibase/jpmail/changeSetPort.xml' + SELECT COUNT(*) FROM sysconfig WHERE item = 'jpmail_config' diff --git a/seo-plugin/src/main/resources/liquibase/jpseo/port/00000000000001_dataPort_production.xml b/seo-plugin/src/main/resources/liquibase/jpseo/port/00000000000001_dataPort_production.xml index 60824bbce7..e88cd46ee8 100644 --- a/seo-plugin/src/main/resources/liquibase/jpseo/port/00000000000001_dataPort_production.xml +++ b/seo-plugin/src/main/resources/liquibase/jpseo/port/00000000000001_dataPort_production.xml @@ -5,13 +5,14 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_jpseo_dataPort_restore' SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_jpseo_dataPort_production' AND filename = 'liquibase/jpseo/changeSetPort.xml' + SELECT COUNT(*) FROM widgetcatalog WHERE code = 'jpseo_content_viewer' diff --git a/seo-plugin/src/main/resources/liquibase/jpseo/port/00000000000001_schemaPort.xml b/seo-plugin/src/main/resources/liquibase/jpseo/port/00000000000001_schemaPort.xml index ba8f43e398..8f3f9debda 100644 --- a/seo-plugin/src/main/resources/liquibase/jpseo/port/00000000000001_schemaPort.xml +++ b/seo-plugin/src/main/resources/liquibase/jpseo/port/00000000000001_schemaPort.xml @@ -5,7 +5,14 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + + + + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_jpseo_schemaPort' + + + + diff --git a/versioning-plugin/src/main/resources/liquibase/jpversioning/port/00000000000001_schemaPort.xml b/versioning-plugin/src/main/resources/liquibase/jpversioning/port/00000000000001_schemaPort.xml index 8f20c64787..3b4d7e8921 100644 --- a/versioning-plugin/src/main/resources/liquibase/jpversioning/port/00000000000001_schemaPort.xml +++ b/versioning-plugin/src/main/resources/liquibase/jpversioning/port/00000000000001_schemaPort.xml @@ -5,7 +5,14 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + + + + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_jpversioning_schemaPort' + + + + diff --git a/webapp/src/main/resources/liquibase/defaultResources/port/00000000000001_dataPort_production.xml b/webapp/src/main/resources/liquibase/defaultResources/port/00000000000001_dataPort_production.xml index ce74627dd0..b3be06ce90 100644 --- a/webapp/src/main/resources/liquibase/defaultResources/port/00000000000001_dataPort_production.xml +++ b/webapp/src/main/resources/liquibase/defaultResources/port/00000000000001_dataPort_production.xml @@ -5,7 +5,7 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + @@ -13,6 +13,7 @@ SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '00000000000001_de_defaultResources_dataPort_production' AND filename = 'liquibase/defaultResources/changeSetPort.xml' + SELECT COUNT(*) FROM widgetcatalog WHERE code = 'breadcrumb' diff --git a/webapp/src/main/resources/liquibase/defaultResources/port/20221004100000_errorpage_config.xml b/webapp/src/main/resources/liquibase/defaultResources/port/20221004100000_errorpage_config.xml index 6ca7cbe38a..4760a69b68 100644 --- a/webapp/src/main/resources/liquibase/defaultResources/port/20221004100000_errorpage_config.xml +++ b/webapp/src/main/resources/liquibase/defaultResources/port/20221004100000_errorpage_config.xml @@ -5,7 +5,16 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + + + + + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '20221004100000_errorpage_config' + SELECT COUNT(*) FROM pages WHERE code = 'errorpage' + SELECT COUNT(*) FROM widgetcatalog WHERE code = 'messages_system' + SELECT COUNT(*) FROM widgetconfig_draft WHERE widgetcode = 'messages_system' AND pagecode = 'errorpage' AND framepos = 0 + SELECT COUNT(*) FROM widgetconfig WHERE widgetcode = 'messages_system' AND pagecode = 'errorpage' AND framepos = 0 + diff --git a/webapp/src/main/resources/liquibase/defaultResources/port/20221214000000_legacy_navigation_menu_widget.xml b/webapp/src/main/resources/liquibase/defaultResources/port/20221214000000_legacy_navigation_menu_widget.xml index 7540d19398..74369161ea 100644 --- a/webapp/src/main/resources/liquibase/defaultResources/port/20221214000000_legacy_navigation_menu_widget.xml +++ b/webapp/src/main/resources/liquibase/defaultResources/port/20221214000000_legacy_navigation_menu_widget.xml @@ -5,7 +5,13 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd"> - + + + + SELECT COUNT(*) FROM DATABASECHANGELOG WHERE id = '20221214100000_navigation_bar_widget' + SELECT COUNT(*) FROM widgetcatalog WHERE code = 'legacy-navigation-menu' + +