Skip to content

Commit 28eb9be

Browse files
committed
Draft 5.0 update process
1 parent f210580 commit 28eb9be

File tree

1 file changed

+85
-2
lines changed

1 file changed

+85
-2
lines changed

docs/update_and_migration/from_4.6/update_to_5.0.md

Lines changed: 85 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ If you have custom code directly querying those, you will need to update them.
242242

243243
You can track the renamming in the `ibexa-4.6.latest-to-5.0.0.sql` files or in the folded map below.
244244

245-
??? note "Renaming map"
245+
??? note "Tables and columns renaming map"
246246

247247
TODO: Keep up-to-date
248248

@@ -341,15 +341,98 @@ php bin/console ibexa:graphql:generate-schema
341341

342342
### Update custom code for [[= product_name =]] 5.0
343343

344+
#### Update PHP framework standards
345+
344346
Update the `rector.php` file to use `IbexaSetList::IBEXA_50` rule set
345347
by running the recipe:
346348

347349
```bash
348350
composer recipe:install ibexa/rector --force --reset --yes
349351
```
350352

351-
### Update Back Office extensions
353+
TODO: Add other rule sets?
354+
355+
You can add some other rule sets like the Symfony and SensioLabs ones to match newer standards:
356+
357+
```php
358+
//use Rector\Doctrine\Set\DoctrineSetList;
359+
use Rector\Symfony\Set\SymfonySetList;
360+
use Rector\Symfony\Set\SensiolabsSetList;
361+
362+
//…
363+
364+
->withSets(
365+
[
366+
IbexaSetList::IBEXA_50->value, // rule set for upgrading to Ibexa DXP 5.0
367+
SymfonySetList::SYMFONY_60,
368+
SymfonySetList::SYMFONY_61,
369+
SymfonySetList::SYMFONY_62,
370+
SymfonySetList::SYMFONY_63,
371+
SymfonySetList::SYMFONY_64,
372+
SymfonySetList::SYMFONY_70,
373+
SymfonySetList::SYMFONY_71,
374+
SymfonySetList::SYMFONY_72,
375+
SensiolabsSetList::ANNOTATIONS_TO_ATTRIBUTES,
376+
//DoctrineSetList::DOCTRINE_DBAL_211, //TODO: Useful?
377+
//TODO: Other usefull sets?
378+
]
379+
)->withAttributesSets(symfony: true);
380+
```
381+
382+
TODO: Set deprecation and withAttributesSets
383+
384+
#### Update field type identifiers
385+
386+
- Update in template
387+
- TODO: `{% block ezstring_field %)``{% block ibexa_string_field %}` (content_fields.html.twig) and others (field edit, field def, field def edit,…)
388+
- TODO: Configs, template paths, template rules, whatever needed…
389+
- Update in migration files
390+
391+
??? note "Field type identifiers renaming map"
392+
393+
| old name | new name |
394+
|:--------------------------------|:--------------------------------|
395+
| ibexa_address | ibexa_address |
396+
| ezauthor | ibexa_author |
397+
| ezbinaryfile | ibexa_binaryfile |
398+
| ezboolean | ibexa_boolean |
399+
| ezcontentquery | ibexa_content_query |
400+
| ezcountry | ibexa_country |
401+
| ibexa_customer_group | ibexa_customer_group |
402+
| ezdate | ibexa_date |
403+
| ezdatetime | ibexa_datetime |
404+
| ezemail | ibexa_email |
405+
| ezfloat | ibexa_float |
406+
| ezform | ibexa_form |
407+
| ezgmaplocation | ibexa_gmap_location |
408+
| ezimage | ibexa_image |
409+
| ezimageasset | ibexa_image_asset |
410+
| ezinteger | ibexa_integer |
411+
| ezisbn | ibexa_isbn |
412+
| ezkeyword | ibexa_keyword |
413+
| ezlandingpage | ibexa_landing_page |
414+
| ezmatrix | ibexa_matrix |
415+
| ibexa_measurement | ibexa_measurement |
416+
| ezmedia | ibexa_media |
417+
| ezobjectrelation | ibexa_object_relation |
418+
| ezobjectrelationlist | ibexa_object_relation_list |
419+
| ibexa_product_specification | ibexa_product_specification |
420+
| ezpage | ezpage (?!) |
421+
| ezrichtext | ibexa_richtext |
422+
| ezselection | ibexa_selection |
423+
| ibexa_seo | ibexa_seo |
424+
| ezstring | ibexa_string |
425+
| ibexa_taxonomy_entry | ibexa_taxonomy_entry |
426+
| ibexa_taxonomy_entry_assignment | ibexa_taxonomy_entry_assignment |
427+
| eztext | ibexa_text |
428+
| eztime | ibexa_time |
429+
| ezurl | ibexa_url |
430+
| ezuser | ibexa_user |
431+
432+
#### Update Back Office extensions
352433

353434
TODO: Update JS, templates, CSS…
354435
TODO: Some old deprecated Webpack file names were supported in 4.6 for backward compatibility; They aren't in 5.0
355436
TODO: Conversion tables
437+
TODO: Icons
438+
TODO: Shared with front?

0 commit comments

Comments
 (0)