@@ -881,54 +881,61 @@ Features which were optional 4.6 LTS Updates are now part of 5.0.0.
881881
882882* If you have already installed the feature, its schema has been updated by the previous step.
883883* If you haven't installed the feature, you need to add its schema to your database.
884+ Store the SQL of the schema into a file, review it, then run it.
884885* If you mistakenly reinstall a schema, you might encounter "Table already exists" errors which can be ignored.
885886
886- !!! tip
887-
888- Instead of piping the command to the DB client,
889- you can redirect the SQL output into a file
890- to study it or help its sharing and deployment.
891-
892887#### Install AI actions schema
893888
894889=== "MySQL"
895890
896891 ` ` ` bash
897- 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>
892+ php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/connector-ai/src/bundle/Resources/config/schema.yaml > schema_connector-ai.sql
893+ # schema_connector-ai.sql review
894+ mysql -u <username> -p <password> <database_name> < schema_connector-ai.sql
898895 ```
899896
900897=== "PostgreSQL"
901898
902899 ` ` ` bash
903- php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/connector-ai/src/bundle/Resources/config/schema.yaml | psql <database_name>
900+ php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/connector-ai/src/bundle/Resources/config/schema.yaml > schema_connector-ai.sql
901+ # Pause to review schema_connector-ai.sql
902+ psql <database_name> < schema_connector-ai.sql
904903 ` ` `
905904
906905# ### Install date and time attribute type
907906
908907=== "MySQL"
909908
910909 ` ` ` bash
911- 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+ php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/product-catalog-date-time-attribute/src/bundle/Resources/config/schema.yaml > schema_date-time-attribute.sql
911+ # Pause to review schema_date-time-attribute.sql
912+ mysql -u <username> -p <password> <database_name> < schema_date-time-attribute.sql
912913 ` ` `
913914
914915=== "PostgreSQL"
915916
916917 ` ` ` bash
917- php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/product-catalog-date-time-attribute/src/bundle/Resources/config/schema.yaml | psql <database_name>
918+ php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/product-catalog-date-time-attribute/src/bundle/Resources/config/schema.yaml > schema_date-time-attribute.sql
919+ # Pause to review schema_date-time-attribute.sql
920+ psql <database_name> < schema_date-time-attribute.sql
918921 ` ` `
919922
920923# ### Install symbol attribute type
921924
922925=== "MySQL"
923926
924927 ` ` ` bash
925- 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>
928+ php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/product-catalog-symbol-attribute/src/bundle/Resources/config/schema.yaml > schema_symbol-attribute.sql
929+ # Pause to review schema_symbol-attribute.sql
930+ mysql -u <username> -p <password> <database_name> < schema_symbol-attribute.sql
926931 ` ` `
927932
928933=== "PostgreSQL"
929934
930935 ` ` ` bash
931- php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/product-catalog-symbol-attribute/src/bundle/Resources/config/schema.yaml | psql <database_name>
936+ php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/product-catalog-symbol-attribute/src/bundle/Resources/config/schema.yaml > schema_symbol-attribute.sql
937+ # Pause to review schema_symbol-attribute.sql
938+ psql <database_name> < schema_symbol-attribute.sql
932939 ` ` `
933940
934941
@@ -937,31 +944,43 @@ Features which were optional 4.6 LTS Updates are now part of 5.0.0.
937944=== "MySQL"
938945
939946 ` ` ` bash
940- php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/collaboration/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <password> <database_name>
941- php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/share/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <password> <database_name>
947+ php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/collaboration/src/bundle/Resources/config/schema.yaml > schema_collaboration.sql
948+ php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/share/src/bundle/Resources/config/schema.yaml > schema_share.sql
949+ # Pause to review schema_collaboration.sql and schema_share.sql
950+ mysql -u <username> -p <password> <database_name> < schema_collaboration.sql
951+ mysql -u <username> -p <password> <database_name> < schema_share.sql
942952 ` ` `
943953
944954=== "PostgreSQL"
945955
946956 ` ` ` bash
947- php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/collaboration/src/bundle/Resources/config/schema.yaml | psql <database_name>
948- php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/share/src/bundle/Resources/config/schema.yaml | psql <database_name>
957+ php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/collaboration/src/bundle/Resources/config/schema.yaml > schema_collaboration.sql
958+ php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/share/src/bundle/Resources/config/schema.yaml > schema_share.sql
959+ # Pause to review schema_collaboration.sql and schema_share.sql
960+ psql <database_name> < schema_collaboration.sql
961+ psql <database_name> < schema_share.sql
949962 ` ` `
950963
951964# ### Install discounts [[% include 'snippets/commerce_badge.md' %]]
952965
953966=== "MySQL"
954967
955968 ` ` ` bash
956- php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts/src/bundle/Resources/config/schema.yaml | mysql -u <username> -p <password> <database_name>
957- 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>
969+ php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts/src/bundle/Resources/config/schema.yaml > schema_discounts.sql
970+ php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts-codes/src/bundle/Resources/config/schema.yaml > schema_discounts-codes.sql
971+ # Pause to review schema_discounts.sql and schema_discounts-codes.sql
972+ mysql -u <username> -p <password> <database_name> < schema_discounts.sql
973+ mysql -u <username> -p <password> <database_name> < schema_discounts-codes.sql
958974 ` ` `
959975
960976=== "PostgreSQL"
961977
962978 ` ` ` bash
963- php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts/src/bundle/Resources/config/schema.yaml | psql <database_name>
964- php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts-codes/src/bundle/Resources/config/schema.yaml | psql <database_name>
979+ php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts/src/bundle/Resources/config/schema.yaml > schema_discounts.sql
980+ php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/discounts-codes/src/bundle/Resources/config/schema.yaml > schema_discounts-codes.sql
981+ # Pause to review schema_discounts.sql and schema_discounts-codes.sql
982+ psql <database_name> < schema_discounts.sql
983+ psql <database_name> < schema_discounts-codes.sql
965984 ` ` `
966985
967986# ## Clear cache pool
0 commit comments