Skip to content

Commit

Permalink
Merge pull request #3497 from xiaohutai/feature/5.2-yaml-migrations
Browse files Browse the repository at this point in the history
Add YAML Migrations
  • Loading branch information
bobdenotter authored Dec 22, 2023
2 parents 4b4686c + ea37263 commit 0f7a155
Show file tree
Hide file tree
Showing 4 changed files with 35 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
12 changes: 12 additions & 0 deletions yaml-migrations/m_2022-03-23-doctrine.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Adding JSON_VALUE, see https://github.com/bolt/core/pull/3135
# From: https://github.com/bolt/core/issues/2088#issuecomment-1076232230

file: packages/doctrine.yaml
since: 5.1.6

add:
doctrine:
orm:
dql:
string_functions:
JSON_VALUE: Bolt\Doctrine\Functions\JsonValue
11 changes: 11 additions & 0 deletions yaml-migrations/m_2023-10-26-prod-doctrine.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# See: https://github.com/bolt/project/commit/f33248d487b5b6a09a38224f890d259f9ea07003#diff-79c1dc283ac8f8d1d02991db661137a22a20b13cd277962eae1d0dbfb2d96467

file: packages/prod/doctrine.yaml
since: 5.2.0

add:
framework:
cache:
pools:
doctrine.system_cache_pool:
adapter: cache.app
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 0f7a155

Please sign in to comment.