Skip to content

Commit 77dd6d8

Browse files
committed
update_to_5.0.md: Move PHP update sooner to ensure bin/console
1 parent 37b8d58 commit 77dd6d8

File tree

1 file changed

+137
-137
lines changed

1 file changed

+137
-137
lines changed

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

Lines changed: 137 additions & 137 deletions
Original file line numberDiff line numberDiff line change
@@ -406,143 +406,6 @@ You can track the renaming in the `ibexa-4.6.latest-to-5.0.0.sql` file or below.
406406
ALTER TABLE ibexa_dfs_file RENAME INDEX ezdfsfile_mtime TO ibexa_dfs_file_mtime;
407407
```
408408

409-
### Install new features' schemas
410-
411-
Features which were optional 4.6 LTS Updates are now part of 5.0.0.
412-
413-
* If you have already installed the feature, its schema has been updated by the previous step.
414-
* If you haven't installed the feature, you need to add its schema to your database.
415-
* If you mistakenly reinstall a schema, you might encounter "Table already exists" errors which can be ignored.
416-
417-
!!! note
418-
419-
Instead of piping the command to the DB client,
420-
you can redirect the SQL output into a file
421-
to study it or help its sharing and deployment.
422-
423-
#### Install AI actions schema
424-
425-
=== "MySQL"
426-
427-
```bash
428-
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>
429-
```
430-
431-
=== "PostgreSQL"
432-
433-
```bash
434-
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/connector-ai/src/bundle/Resources/config/schema.yaml | psql <database_name>
435-
```
436-
437-
#### Install date and time attribute type
438-
439-
=== "MySQL"
440-
441-
```bash
442-
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/product-catalog-date-time-attribute/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <password> <database_name>
443-
```
444-
445-
=== "PostgreSQL"
446-
447-
```bash
448-
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/product-catalog-date-time-attribute/src/bundle/Resources/config/schema.yaml | psql <database_name>
449-
```
450-
451-
#### Install symbol attribute type
452-
453-
=== "MySQL"
454-
455-
```bash
456-
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/product-catalog-symbol-attribute/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <password> <database_name>
457-
```
458-
459-
=== "PostgreSQL"
460-
461-
```bash
462-
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/product-catalog-symbol-attribute/src/bundle/Resources/config/schema.yaml | psql <database_name>
463-
```
464-
465-
466-
#### Install collaboration
467-
468-
=== "MySQL"
469-
470-
```bash
471-
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/collaboration/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <password> <database_name>
472-
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/share/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <password> <database_name>
473-
```
474-
475-
=== "PostgreSQL"
476-
477-
```bash
478-
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/collaboration/src/bundle/Resources/config/schema.yaml | psql <database_name>
479-
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/share/src/bundle/Resources/config/schema.yaml | psql <database_name>
480-
```
481-
482-
#### Install discounts [[% include 'snippets/commerce_badge.md' %]]
483-
484-
=== "MySQL"
485-
486-
```bash
487-
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <password> <database_name>
488-
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts-codes/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <password> <database_name>
489-
```
490-
491-
=== "PostgreSQL"
492-
493-
```bash
494-
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts/src/bundle/Resources/config/schema.yaml | psql <database_name>
495-
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts-codes/src/bundle/Resources/config/schema.yaml | psql <database_name>
496-
```
497-
498-
### Clear cache pool
499-
500-
The persistence cache pool needs to be cleared to be able to use the repository again.
501-
502-
```bash
503-
php bin/console cache:pool:clear --all
504-
```
505-
506-
### Migrations
507-
508-
#### Taxonomy
509-
510-
```bash
511-
php bin/console ibexa:migrations:import vendor/ibexa/taxonomy/src/bundle/Resources/install/migrations/2025_08_09_14_47_mark_tag_as_container.yaml
512-
php bin/console ibexa:migrations:migrate --file=2025_08_09_14_47_mark_tag_as_container.yaml --siteaccess=admin
513-
```
514-
515-
#### Product catalog
516-
517-
```bash
518-
php bin/console ibexa:migrations:import vendor/ibexa/product-catalog/src/bundle/Resources/migrations/2025_07_09_13_52_mark_product_category_container.yaml
519-
php bin/console ibexa:migrations:migrate --file=2025_07_09_13_52_mark_product_category_container.yaml --siteaccess=admin
520-
```
521-
522-
#### Corporate accounts [[% include 'snippets/experience_badge.md' %]] [[% include 'snippets/commerce_badge.md' %]]
523-
524-
```bash
525-
php bin/console ibexa:migrations:import vendor/ibexa/corporate-account/src/bundle/Resources/migrations/2025_07_08_09_27_set_container_to_company.yaml
526-
php bin/console ibexa:migrations:migrate --file=2025_07_08_09_27_set_container_to_company.yaml --siteaccess=admin
527-
```
528-
529-
### Generate GraphQL schema
530-
531-
GraphQL usage is no longer required for the Ibexa DXP back office.
532-
If you are using GraphQL in your project, you can generate its schema by running:
533-
534-
```bash
535-
php bin/console ibexa:graphql:generate-schema
536-
```
537-
538-
### Update search indexes
539-
540-
Ensure your search index is up to date with the following command:
541-
542-
```bash
543-
php bin/console ibexa:reindex
544-
```
545-
546409
### Update custom code for [[= product_name =]] 5.0
547410

548411
#### Update PHP framework standards
@@ -1010,6 +873,143 @@ The following example illustrates the update of a custom page block's icon:
1010873
+ thumbnail: /bundles/ibexaadminuiassets/vendors/ids-assets/dist/img/all-icons.svg#info-square
1011874
```
1012875
876+
### Install new features' schemas
877+
878+
Features which were optional 4.6 LTS Updates are now part of 5.0.0.
879+
880+
* If you have already installed the feature, its schema has been updated by the previous step.
881+
* If you haven't installed the feature, you need to add its schema to your database.
882+
* If you mistakenly reinstall a schema, you might encounter "Table already exists" errors which can be ignored.
883+
884+
!!! note
885+
886+
Instead of piping the command to the DB client,
887+
you can redirect the SQL output into a file
888+
to study it or help its sharing and deployment.
889+
890+
#### Install AI actions schema
891+
892+
=== "MySQL"
893+
894+
```bash
895+
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>
896+
```
897+
898+
=== "PostgreSQL"
899+
900+
```bash
901+
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/connector-ai/src/bundle/Resources/config/schema.yaml | psql <database_name>
902+
```
903+
904+
#### Install date and time attribute type
905+
906+
=== "MySQL"
907+
908+
```bash
909+
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/product-catalog-date-time-attribute/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <password> <database_name>
910+
```
911+
912+
=== "PostgreSQL"
913+
914+
```bash
915+
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/product-catalog-date-time-attribute/src/bundle/Resources/config/schema.yaml | psql <database_name>
916+
```
917+
918+
#### Install symbol attribute type
919+
920+
=== "MySQL"
921+
922+
```bash
923+
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/product-catalog-symbol-attribute/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <password> <database_name>
924+
```
925+
926+
=== "PostgreSQL"
927+
928+
```bash
929+
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/product-catalog-symbol-attribute/src/bundle/Resources/config/schema.yaml | psql <database_name>
930+
```
931+
932+
933+
#### Install collaboration
934+
935+
=== "MySQL"
936+
937+
```bash
938+
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/collaboration/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <password> <database_name>
939+
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/share/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <password> <database_name>
940+
```
941+
942+
=== "PostgreSQL"
943+
944+
```bash
945+
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/collaboration/src/bundle/Resources/config/schema.yaml | psql <database_name>
946+
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/share/src/bundle/Resources/config/schema.yaml | psql <database_name>
947+
```
948+
949+
#### Install discounts [[% include 'snippets/commerce_badge.md' %]]
950+
951+
=== "MySQL"
952+
953+
```bash
954+
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <password> <database_name>
955+
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts-codes/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <password> <database_name>
956+
```
957+
958+
=== "PostgreSQL"
959+
960+
```bash
961+
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts/src/bundle/Resources/config/schema.yaml | psql <database_name>
962+
php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts-codes/src/bundle/Resources/config/schema.yaml | psql <database_name>
963+
```
964+
965+
### Clear cache pool
966+
967+
The persistence cache pool needs to be cleared to be able to use the repository again.
968+
969+
```bash
970+
php bin/console cache:pool:clear --all
971+
```
972+
973+
### Migrations
974+
975+
#### Taxonomy
976+
977+
```bash
978+
php bin/console ibexa:migrations:import vendor/ibexa/taxonomy/src/bundle/Resources/install/migrations/2025_08_09_14_47_mark_tag_as_container.yaml
979+
php bin/console ibexa:migrations:migrate --file=2025_08_09_14_47_mark_tag_as_container.yaml --siteaccess=admin
980+
```
981+
982+
#### Product catalog
983+
984+
```bash
985+
php bin/console ibexa:migrations:import vendor/ibexa/product-catalog/src/bundle/Resources/migrations/2025_07_09_13_52_mark_product_category_container.yaml
986+
php bin/console ibexa:migrations:migrate --file=2025_07_09_13_52_mark_product_category_container.yaml --siteaccess=admin
987+
```
988+
989+
#### Corporate accounts [[% include 'snippets/experience_badge.md' %]] [[% include 'snippets/commerce_badge.md' %]]
990+
991+
```bash
992+
php bin/console ibexa:migrations:import vendor/ibexa/corporate-account/src/bundle/Resources/migrations/2025_07_08_09_27_set_container_to_company.yaml
993+
php bin/console ibexa:migrations:migrate --file=2025_07_08_09_27_set_container_to_company.yaml --siteaccess=admin
994+
```
995+
996+
### Generate GraphQL schema
997+
998+
GraphQL usage is no longer required for the Ibexa DXP back office.
999+
If you are using GraphQL in your project, you can generate its schema by running:
1000+
1001+
```bash
1002+
php bin/console ibexa:graphql:generate-schema
1003+
```
1004+
1005+
### Update search indexes
1006+
1007+
Ensure your search index is up to date with the following command:
1008+
1009+
```bash
1010+
php bin/console ibexa:reindex
1011+
```
1012+
10131013
### Finalising
10141014

10151015
#### Clear cache and rebuild

0 commit comments

Comments
 (0)