Skip to content

Commit 68f3c2c

Browse files
mnoconadriendupuis
authored andcommitted
Apply suggestion from @adriendupuis
Co-authored-by: Adrien Dupuis <[email protected]>
1 parent 5910823 commit 68f3c2c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

bin/5.0.x-dev/prepare_project_edition.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,12 +287,16 @@ docker compose --env-file=.env exec -T --user www-data app sh -c "php bin/consol
287287
#ddev php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/share/src/bundle/Resources/config/schema.yaml | ddev mysql
288288
#ddev php bin/console ibexa:doctrine:schema:dump-sql vendor/ibexa/connector-ai/src/bundle/Resources/config/schema.yaml | ddev mysql
289289

290-
# Generate new GraphQL schema if used (while admin-ui doesn't use it anymore)
291-
# docker compose exec -T --user www-data app sh -c 'php bin/console cache:pool:clear ${CACHE_POOL:-cache.tagaware.filesystem}'
292-
#docker compose --env-file=.env exec -T --user www-data app sh -c "composer require ibexa/graphql --no-interaction"
290+
# Clear persistence cache pool (when using Redis or Memcached)
293291
if [[ "$COMPOSE_FILE" == *"redis.yml"* ]]; then
294292
docker compose --env-file=.env exec -T --user www-data app sh -c "php bin/console cache:pool:clear --all"
295293
fi
294+
295+
# Migration (update 'company' content type)
296+
docker compose --env-file=.env exec -T --user www-data app sh -c "php bin/console ibexa:migrations:import vendor/ibexa/corporate-account/src/bundle/Resources/migrations/2025_07_08_09_27_set_container_to_company.yaml"
297+
docker compose --env-file=.env exec -T --user www-data app sh -c "php bin/console ibexa:migrations:migrate --file=2025_07_08_09_27_set_container_to_company.yaml --siteaccess=admin"
298+
299+
# Generate new GraphQL schema if used (while admin-ui doesn't use it anymore)
296300
docker compose --env-file=.env exec -T --user www-data app sh -c "php bin/console ibexa:graphql:generate-schema"
297301

298302
# reindex

0 commit comments

Comments
 (0)