From 7b2c3f2721936804e9a611cfe3a488bd6a4f5602 Mon Sep 17 00:00:00 2001 From: Bob van de Vijver Date: Fri, 26 Sep 2025 23:18:52 +0200 Subject: [PATCH 1/2] Fix yaml migrations, only a single action is allowed per migration --- yaml-migrations/m_2025-09-26-services_bolt.yaml | 6 ------ yaml-migrations/m_2025-09-26-services_bolt_2.yaml | 10 +++------- yaml-migrations/m_2025-09-26-services_bolt_3.yaml | 6 ++++++ yaml-migrations/m_2025-09-26-services_bolt_4.yaml | 8 ++++++++ 4 files changed, 17 insertions(+), 13 deletions(-) create mode 100644 yaml-migrations/m_2025-09-26-services_bolt_3.yaml create mode 100644 yaml-migrations/m_2025-09-26-services_bolt_4.yaml diff --git a/yaml-migrations/m_2025-09-26-services_bolt.yaml b/yaml-migrations/m_2025-09-26-services_bolt.yaml index 5d0b5e87b..3734c0f26 100644 --- a/yaml-migrations/m_2025-09-26-services_bolt.yaml +++ b/yaml-migrations/m_2025-09-26-services_bolt.yaml @@ -4,9 +4,3 @@ since: 6.0.0 remove: services: BobdenOtter\WeatherWidget\: ~ - -add: - services: - Bolt\WeatherWidget\: - resource: '../vendor/bolt/weatherwidget/src/*' - exclude: '../vendor/bolt/weatherwidget/src/{Entity,Exception}' diff --git a/yaml-migrations/m_2025-09-26-services_bolt_2.yaml b/yaml-migrations/m_2025-09-26-services_bolt_2.yaml index 5a1a6cf9e..2b78227e8 100644 --- a/yaml-migrations/m_2025-09-26-services_bolt_2.yaml +++ b/yaml-migrations/m_2025-09-26-services_bolt_2.yaml @@ -1,12 +1,8 @@ file: services_bolt.yaml since: 6.0.0 -remove: - services: - BobdenOtter\ConfigurationNotices\: ~ - add: services: - Bolt\ConfigurationNoticesWidget\: - resource: '../vendor/bolt/configuration-notices-widget/src/*' - exclude: '../vendor/bolt/configuration-notices-widget/src/{Entity,Exception}' + Bolt\WeatherWidget\: + resource: '../vendor/bolt/weatherwidget/src/*' + exclude: '../vendor/bolt/weatherwidget/src/{Entity,Exception}' diff --git a/yaml-migrations/m_2025-09-26-services_bolt_3.yaml b/yaml-migrations/m_2025-09-26-services_bolt_3.yaml new file mode 100644 index 000000000..c11365bf1 --- /dev/null +++ b/yaml-migrations/m_2025-09-26-services_bolt_3.yaml @@ -0,0 +1,6 @@ +file: services_bolt.yaml +since: 6.0.0 + +remove: + services: + BobdenOtter\ConfigurationNotices\: ~ diff --git a/yaml-migrations/m_2025-09-26-services_bolt_4.yaml b/yaml-migrations/m_2025-09-26-services_bolt_4.yaml new file mode 100644 index 000000000..e77b73f46 --- /dev/null +++ b/yaml-migrations/m_2025-09-26-services_bolt_4.yaml @@ -0,0 +1,8 @@ +file: services_bolt.yaml +since: 6.0.0 + +add: + services: + Bolt\ConfigurationNoticesWidget\: + resource: '../vendor/bolt/configuration-notices-widget/src/*' + exclude: '../vendor/bolt/configuration-notices-widget/src/{Entity,Exception}' From 435f11f75af9d62d8dc45434b8055eb2e8038213 Mon Sep 17 00:00:00 2001 From: Bob van de Vijver Date: Fri, 26 Sep 2025 23:21:48 +0200 Subject: [PATCH 2/2] Add missing migration for widget configuration files --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a46f14810..78b77e772 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "api-platform/core": "^2.6", "babdev/pagerfanta-bundle": "^4.5", "beberlei/doctrineextensions": "^1.3", - "bolt/yaml-migrations": "^2.0", + "bolt/yaml-migrations": "^2.1", "bolt/common": "^3.0.5", "cocur/slugify": "^4.0", "composer/composer": "^2.0",