@@ -16,7 +16,7 @@ you have to move to [new Commerce ones](update_from_4.3_new_commerce.md).
1616
1717## Update from v4.6.latest to v5.0.0
1818
19- When you have the last version of 4.6, you can update to v5.0.
19+ When you have the last version of 4.6, you can update to v5.0.0.
2020
2121### Requirements
2222
@@ -161,29 +161,28 @@ composer remove --no-update \
161161 ibexa/connector-ai \
162162 ibexa/collaboration \
163163 ibexa/share \
164+ ibexa/discounts \
165+ ibexa/discounts-codes \
164166;
165167```
166168
167- #### Update required packages
168-
169- It's time to apply the new composer.json and update the dependencies:
169+ #### Remove PHP 8.2 error handler
170170
171- TODO: 🤞
171+ If you were using the [ ` Php82HideDeprecationsErrorHandler ` ] ( update_from_4.6.md#v468 ) to avoid deprecation messages,
172+ you can remove it:
172173
173174``` bash
174- composer update --with-all-dependencies --no-scripts
175+ composer config --unset extra.runtime.error_handler
175176```
176177
177- #### Remove PHP 8.2 error handler
178+ #### Update required packages
178179
179- TODO: Do it earlier?
180+ It's time to apply the new composer.json and update the dependencies:
180181
181- If you were using the [ ` Php82HideDeprecationsErrorHandler ` ] ( update_from_4.6.md#v468 ) to avoid deprecation messages,
182- you can remove it:
182+ TODO: 🤞
183183
184184``` bash
185- # Remove Php82HideDeprecationsErrorHandler
186- ddev composer config --unset extra.runtime.error_handler
185+ composer update --with-all-dependencies --no-scripts
187186```
188187
189188#### Remove Stimulus bootstrap
@@ -240,18 +239,14 @@ Your `auto-scripts` entry should look like this:
240239#### Post update script
241240
242241``` bash
243- # Manually clear cache to ensure scripts won't use a piece of it
244242rm -rf var/cache
245- # A.k.a "auto-scripts"
246243composer run-script post-update-cmd
247244```
248245
249246### Update database
250247
251248Apply the following database update script:
252249
253- TODO: Rework injection of 4.6 LTS Updates' schemas
254-
255250=== "MySQL"
256251
257252 ```bash
@@ -260,6 +255,8 @@ TODO: Rework injection of 4.6 LTS Updates' schemas
260255 php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/collaboration/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <password> <database_name>
261256 php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/share/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <password> <database_name>
262257 php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/connector-ai/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <password> <database_name>
258+ php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts/src/bundle/Resources/config/schema.yaml | ddev mysql -u <username> -p <password> <database_name>
259+ php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts-codes/src/bundle/Resources/config/schema.yaml | ddev mysql -u <username> -p <password> <database_name>
263260 ```
264261
265262=== "PostgreSQL"
@@ -270,14 +267,16 @@ TODO: Rework injection of 4.6 LTS Updates' schemas
270267 php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/collaboration/src/bundle/Resources/config/schema.yaml | psql <database_name>
271268 php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/share/src/bundle/Resources/config/schema.yaml | psql <database_name>
272269 php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/connector-ai/src/bundle/Resources/config/schema.yaml | psql <database_name>
270+ php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts/src/bundle/Resources/config/schema.yaml | psql <database_name>
271+ php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts-codes/src/bundle/Resources/config/schema.yaml | psql <database_name>
273272 ```
274273
275274TODO: Migration files? Content type updates? Seems not.
276275
277276Many tables are renamed. Some columns are also renamed.
278277If you have custom code directly querying those, you will need to update them.
279278
280- You can track the renamming in the ` ibexa-4.6.latest-to-5.0.0.sql ` files or in the folded map below.
279+ You can track the renaming in the ` ibexa-4.6.latest-to-5.0.0.sql ` files or below.
281280
282281??? note "Tables and columns renaming map"
283282
@@ -450,10 +449,10 @@ But you can also go faster with bigger [rule sets in the modern way](https://get
450449
451450Several field type identifiers have changed.
452451Old identifiers are still supported, but it's recommended to migrate as soon as possible
453- and to include this action to the verion update task list.
452+ and to include this action to the current version update task list.
454453
455454You can list existing field type services with the command ` php bin/console debug:container --tag=ibexa.field_type ` .
456- The output as an ` alias ` column with new identifiers and a ` legacy_alias ` with the old ones .
455+ The output as an ` alias ` column with new identifiers and a ` legacy_alias ` column with the old identifiers .
457456
458457??? note "Field type identifiers renaming map"
459458
0 commit comments