Skip to content

Ibexa Doctrine Migrations - #3337

Open
adriendupuis wants to merge 27 commits into
release_5.0.11from
doctrine-migrations
Open

adriendupuis wants to merge 27 commits into
release_5.0.11from
doctrine-migrations

Conversation

@adriendupuis

@adriendupuis adriendupuis commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor
Question Answer
JIRA Ticket IBX-11939
Versions 4.6, 5.0, 6.0
Edition All

ibexa/doctrine-migrations#1

Thiis PR will be upmerged to 6.0 but we must remember to adjust 6.0 description to match the final shape of the feature in that branch.

Wait with merge: Paweł is making more changes to the feature related to the dry-run procedure. Wait with implementing his commentss until he confirms the feature behavior is as required.

Checklist

  • Text renders correctly
  • Text has been checked with vale
  • Description metadata is up to date
  • Redirects cover removed/moved pages
  • Code samples are working
  • PHP code samples have been fixed with PHP CS fixer
  • Added link to this PR in relevant JIRA ticket or code PR

@adriendupuis adriendupuis added the Wait with merge PRs that shouldn't be merged instantly label Aug 3, 2026
@github-actions

github-actions Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

Summary

Status Count
🔍 Total 751786
🔗 Unique 15153
✅ Successful 6299
⏳ Timeouts 0
🔀 Redirected 32
👻 Excluded 745430
❓ Unknown 0
🚫 Errors 57
⛔ Unsupported 0

Errors per input

Errors in site/api/php_api/php_api/index.html

Errors in site/cdp/cdp_activation/cdp_data_export/index.html

Errors in site/content_management/field_types/field_type_reference/urlfield/index.html

Errors in site/getting_started/requirements/index.html

Errors in site/ibexa_cloud/ibexa_cloud_guide/index.html

Errors in site/ibexa_cloud/install_on_ibexa_cloud/index.html

Errors in site/ibexa_products/ibexa_commerce/index.html

Errors in site/ibexa_products/ibexa_experience/index.html

Errors in site/ibexa_products/ibexa_headless/index.html

Errors in site/infrastructure_and_maintenance/cache/http_cache/reverse_proxy/index.html

Errors in site/infrastructure_and_maintenance/security/reporting_issues/index.html

Errors in site/infrastructure_and_maintenance/security/security_checklist/index.html

Errors in site/permissions/custom_policies/index.html

Errors in site/product_catalog/quable/install_quable/index.html

Errors in site/product_catalog/quable/quable_api/index.html

Errors in site/recommendations/raptor_integration/connector_installation_configuration/index.html

Errors in site/recommendations/raptor_integration/raptor_connector/index.html

Errors in site/recommendations/raptor_integration/raptor_connector_guide/index.html

Errors in site/release_notes/cohesivo_v6.0_deprecations/index.html

Errors in site/release_notes/ez_platform_v1.10.0/index.html

Errors in site/release_notes/ez_platform_v1.11.0/index.html

Errors in site/release_notes/ez_platform_v1.12.0/index.html

Errors in site/release_notes/ez_platform_v1.13.0_lts/index.html

Errors in site/release_notes/ez_platform_v1.7.0_lts/index.html

Errors in site/release_notes/ez_platform_v1.8.0/index.html

Errors in site/release_notes/ez_platform_v1.9.0/index.html

Errors in site/release_notes/ibexa_dxp_v4.0/index.html

Errors in site/release_notes/ibexa_dxp_v4.4/index.html

Errors in site/release_notes/ibexa_dxp_v4.6/index.html

Errors in site/release_notes/ibexa_dxp_v5.0/index.html

Errors in site/resources/new_in_doc/index.html

Errors in site/update_and_migration/from_4.5/update_from_4.5/index.html

Redirects per input

Redirects in site/administration/project_organization/bundles/index.html

Redirects in site/api/php_api/php_api/index.html

Redirects in site/cdp/cdp_activation/cdp_data_export/index.html

Redirects in site/commerce/transactional_emails/transactional_emails/index.html

Redirects in site/content_management/field_types/field_type_reference/urlfield/index.html

Redirects in site/getting_started/requirements/index.html

Redirects in site/ibexa_products/ibexa_commerce/index.html

Redirects in site/ibexa_products/ibexa_experience/index.html

Redirects in site/ibexa_products/ibexa_headless/index.html

Redirects in site/infrastructure_and_maintenance/cache/http_cache/reverse_proxy/index.html

Redirects in site/infrastructure_and_maintenance/security/reporting_issues/index.html

Redirects in site/product_catalog/quable/install_quable/index.html

Redirects in site/product_catalog/quable/quable/index.html

Redirects in site/release_notes/cohesivo_v6.0_deprecations/index.html

Redirects in site/release_notes/ez_platform_v1.12.0/index.html

Redirects in site/release_notes/ibexa_dxp_v4.0/index.html

Redirects in site/release_notes/ibexa_dxp_v4.4/index.html

Redirects in site/release_notes/ibexa_dxp_v5.0/index.html

Redirects in site/resources/new_in_doc/index.html

Redirects in site/templating/components/index.html

Redirects in site/templating/image_variations/index.html

Full Github Actions output

@dabrt
dabrt marked this pull request as ready for review October 19, 2026 13:57
@dabrt dabrt added Needs DEV review and removed Wait with merge PRs that shouldn't be merged instantly labels Oct 19, 2026
@dabrt
dabrt requested review from Steveb-p and a balanced review from Copilot October 19, 2026 13:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

7 open issues
What changed in this PR

Updates Ibexa documentation to reflect the introduction of Ibexa Doctrine Migrations for managing schema upgrades instead of manual SQL scripts.

Changes:

  • Replace SQL upgrade/script instructions with ibexa:doctrine:migrations:* commands across installation and update docs.
  • Add new versioned upgrade notes for v4.6.33 and v5.0.11 explaining how to run migrations safely.
  • Update the 4.6 → 5.0 upgrade guide to reference Symfony 7.4 and adjust database-upgrade guidance.
File Description
docs/​users/​oauth_server.md Switch OAuth2 server schema setup from SQL dump pipelines to Ibexa Doctrine migrations.
docs/​update_and_migration/​from_5.0/​update_from_5.0.md Add v5.0.11 section documenting Doctrine migrations-based DB updates.
docs/​update_and_migration/​from_4.6/​update_to_5.0.md Update 4.6→5.0 guide: migrations-based DB upgrade, Symfony 7.4 requirement, and revised conclusions.
docs/​update_and_migration/​from_4.6/​update_from_4.6.md Add v4.6.33 section documenting Doctrine migrations-based DB updates.
docs/​multisite/​translations_management/​configure_translations_management.md Replace SQL schema snippets with migration status/migrate commands.
docs/​ibexa_cloud/​ibexa_cloud_cli.md Add Cloud CLI example for running migrations over SSH; minor wording tweak.
docs/​commerce/​shopping_list/​install_shopping_list.md Replace SQL schema snippets with migration status/migrate commands for Shopping List.

Review effort: Lite

Comment thread docs/ibexa_cloud/ibexa_cloud_cli.md Resolved
@dabrt
dabrt changed the base branch from 5.0 to release_5.0.11 October 21, 2026 08:47
@dabrt dabrt added Wait with merge PRs that shouldn't be merged instantly Work in progress labels Oct 22, 2026
@dabrt
dabrt requested a review from Steveb-p October 28, 2026 21:34

@Steveb-p Steveb-p left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, most of the earlier points are in. Remaining:

  • Unreferenced files - remove?
    • code_samples/shopping_list/install/schema.*.sql
    • code_samples/translations_management/install/schema.*.sql
    • from_4.6/sql/ibexa_oss_4.6.latest-to-5.0.0_*.sql
  • v4.6.33 is only in the 5.0 docs - is a 4.6 counterpart planned?
  • The "Preview only" caution is right for now. If ibexa/doctrine-migrations#25-#27 land in 5.0.11, we'll revisit it.
  • In shopping list and translations management, the caution snippet splits the bullet list.

Comment thread docs/users/oauth_server.md Resolved
Comment thread docs/ibexa_cloud/ibexa_cloud_cli.md Resolved
Comment thread docs/ibexa_cloud/ibexa_cloud_cli.md Resolved
@dabrt
dabrt requested a review from Steveb-p October 30, 2026 08:30

@Steveb-p Steveb-p left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we should also include a note somewhere on how one can apply each migration in sequence (in lieu of running all of them all at once).

php bin/console ibexa:doctrine:migrations:migrate next --dry-run

...and without --dry-run can allow user to go through each migration, one by one.


!!! note "Installing with Doctrine migrations"

By default, `ibexa:install` creates the database schema directly, without tracking individual changes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side note to memory: in 6.0, installing via migrations will be the default.

@dabrt
dabrt requested a review from Steveb-p October 30, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs DEV review Wait with merge PRs that shouldn't be merged instantly Work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants