Skip to content

IBX-11939: Added the missing ON UPDATE CASCADE to ezcontentclass_attribute_ml's SQLite foreign key - #858

Draft
Steveb-p wants to merge 1 commit into
feature/fix-schema-rename-migration-6.0-postgresfrom
feature/sqlite-fk-on-update-6.0
Draft

Steveb-p wants to merge 1 commit into
feature/fix-schema-rename-migration-6.0-postgresfrom
feature/sqlite-fk-on-update-6.0

Conversation

@Steveb-p

@Steveb-p Steveb-p commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Note

Stacked on #788: it targets #788's branch and lands right after it.

🎫 Issue IBX-11939

Related PRs:

Description:

The SQLite baseline's ezcontentclass_attribute_ml_lang_fk lacks ON UPDATE CASCADE, which the MySQL/PostgreSQL baselines have (schema.yaml declares it on the renamed ibexa_content_type_field_definition_ml_lang_fk). So on SQLite, an install through Doctrine Migrations ends up with a different foreign key than one through SchemaBuilderEvent.

This is #856's fix for 6.0: this branch's SQLite install schema is byte-identical to 4.6's before that fix, so it's the same one-line change. With it, every foreign key's ON UPDATE matches this branch's MySQL and PostgreSQL install schemas (the two NO ACTION ones stay implicit, as that's SQLite's default).

#788 isn't released yet, so this fixes the baseline itself rather than adding a migration.

…ibute_ml's SQLite foreign key

schema.yaml declares ezcontentclass_attribute_ml_lang_fk with onUpdate: CASCADE, and the MySQL
and PostgreSQL baselines have it, but the SQLite one only had ON DELETE CASCADE. The schema
parity test reports it on SQLite's fresh-install scenario.
@sonarqubecloud

sonarqubecloud Bot commented Oct 4, 2026

Copy link
Copy Markdown

@Steveb-p
Steveb-p added this pull request to stack #860 October 4, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant