Skip to content

IBX-11939: Added the missing ON UPDATE action to the SQLite foreign key - #155

Merged
Steveb-p merged 1 commit into
feature/schema-migration-4.6from
feature/sqlite-fk-on-update-4.6
Oct 5, 2026
Merged

Steveb-p merged 1 commit into
feature/schema-migration-4.6from
feature/sqlite-fk-on-update-4.6

Conversation

@Steveb-p

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

Copy link
Copy Markdown
Contributor

Note

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

🎫 Issue IBX-11939

Related PRs:

Description:

Its foreign key declares ON UPDATE CASCADE in schema.yaml, and the MySQL and PostgreSQL install schemas have it, but the SQLite one left it out. The file was generated with DBAL's own SqlitePlatform, which reports no foreign key support and so drops ON UPDATE. The SchemaBuilderEvent path goes through doctrine-schema's SqliteDbPlatform, which keeps it, so on SQLite the two install paths created different foreign keys.

This adds the declared action to each foreign key, and nothing else. Built from this file and from schema.yaml through SqliteDbPlatform, the two SQLite databases now come out the same under ibexa/test-core#68's comparison.

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

…keys

The SQLite install schema was generated with DBAL's own SqlitePlatform, which reports no foreign
key support and so leaves every ON UPDATE action out. The SchemaBuilderEvent path uses
doctrine-schema's SqliteDbPlatform, which keeps them, so on SQLite the two install paths created
different foreign keys. This adds the action each foreign key declares in schema.yaml.
@sonarqubecloud

sonarqubecloud Bot commented Oct 4, 2026

Copy link
Copy Markdown

@Steveb-p
Steveb-p added this pull request to stack #159 October 5, 2026 11:09
@Steveb-p
Steveb-p marked this pull request as ready for review October 5, 2026 11:09
@Steveb-p
Steveb-p merged commit 5119dfe into 4.6 Oct 5, 2026
13 checks passed
@Steveb-p
Steveb-p deleted the feature/sqlite-fk-on-update-4.6 branch October 5, 2026 11:12
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