From c2f78c90e67b24a4c88aeda17ad1f8a1f6ec0df2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Sat, 3 Oct 2026 14:39:40 +0200 Subject: [PATCH] IBX-11939: Added the missing ON UPDATE CASCADE to ezcontentclass_attribute_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. --- .../RepositoryInstaller/Migration/sql/install-schema-sqlite.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql index 5aab90bc2d..71b857f1ab 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql @@ -203,7 +203,7 @@ CREATE TABLE ezcontentclass_attribute_ml ( data_json CLOB DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id), CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) - REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE ); -- ibexa:sql-statement-separator CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id);