Skip to content

Commit

Permalink
Add YAML Migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohutai committed Oct 26, 2023
1 parent 396f2e9 commit 94da66d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/bolt/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ caching:
backend_menu: ~
files_index: ~
list_format: false # Run `bin/console cache:list-format; bin/console bolt:update-list-format` to clear and rebuild these

# The theme to use.
#
# Dont edit the provided templates directly, because they _will_ get updated
Expand Down Expand Up @@ -65,7 +65,7 @@ headers:
# canonical, so its clear which is the primary address of the site.
#
# If you include `https://`, it will be included in the canonical urls.
canonical: https://example.org
#canonical: https://example.org

# If you want to override the canonical template, from the theme:
#canonical_template: 'partials/_canonical.html.twig'
Expand Down
13 changes: 13 additions & 0 deletions yaml-migrations/m_2023-10-26-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Add/Overwrite new configuration options
# See: https://github.com/bolt/core/commit/7f1347a21d99c06dae157204ebadd4cbabf94b55
# See: https://github.com/bolt/core/commit/2c0f4b18c576927a28f0db6c73732d2dc63b6d65
# See: https://github.com/bolt/core/commit/9aebe9c472e94a0eed64eb4643f82c7057d614b4

file: bolt/config.yaml
since: 5.2.0

add:
caching:
list_format: false
maximum_listing_select: 50000
ajaxy_saving: false
9 changes: 9 additions & 0 deletions yaml-migrations/m_2023-10-26-config2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Remove `allow_upscale`
# See: https://github.com/bolt/core/pull/3383

file: bolt/config.yaml
since: 5.2.0

remove:
thumbnails:
allow_upscale: ~
10 changes: 10 additions & 0 deletions yaml-migrations/m_2023-10-26-services_bolt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Add `bind`
# See: https://github.com/bolt/core/commit/a5ffe5df95cac71faa76a95eca1a7720c40532ed

file: services_bolt.yaml
since: 5.2.0

add:
services:
_defaults:
bind: { }

0 comments on commit 94da66d

Please sign in to comment.