From a17eedbcb274c94e1a197fffaec4e0bedbc4ce7a Mon Sep 17 00:00:00 2001 From: Vidar Langseid Date: Thu, 18 Dec 2025 12:22:53 +0100 Subject: [PATCH 1/2] IBX-11112: Add primary key on ezurl_object_link / ibexa_url_content_link --- src/bundle/Core/Resources/config/storage/legacy/schema.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bundle/Core/Resources/config/storage/legacy/schema.yaml b/src/bundle/Core/Resources/config/storage/legacy/schema.yaml index 484ed26e64..92c6d44efd 100644 --- a/src/bundle/Core/Resources/config/storage/legacy/schema.yaml +++ b/src/bundle/Core/Resources/config/storage/legacy/schema.yaml @@ -551,6 +551,8 @@ tables: ezurl_ol_url_id: { fields: [url_id] } ezurl_ol_coa_version: { fields: [contentobject_attribute_version] } ezurl_ol_coa_id_cav: { fields: [contentobject_attribute_id, contentobject_attribute_version] } + id: + id: { type: integer, nullable: false, options: { autoincrement: true } } fields: contentobject_attribute_id: { type: integer, nullable: false, options: { default: '0' } } contentobject_attribute_version: { type: integer, nullable: false, options: { default: '0' } } From a37c2a13356bc7c6608b1beefe7bad24ea884a60 Mon Sep 17 00:00:00 2001 From: Vidar Langseid Date: Thu, 18 Dec 2025 12:54:20 +0100 Subject: [PATCH 2/2] Fixed unit tests --- tests/lib/FieldType/Url/Gateway/DoctrineStorageTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/lib/FieldType/Url/Gateway/DoctrineStorageTest.php b/tests/lib/FieldType/Url/Gateway/DoctrineStorageTest.php index 37ba95ad3e..87ef886f18 100644 --- a/tests/lib/FieldType/Url/Gateway/DoctrineStorageTest.php +++ b/tests/lib/FieldType/Url/Gateway/DoctrineStorageTest.php @@ -138,6 +138,7 @@ public function testLinkUrl() 'contentobject_attribute_id' => $fieldId, 'contentobject_attribute_version' => $versionNo, 'url_id' => $urlId, + 'id' => 1, ], ]; @@ -168,6 +169,7 @@ public function testUnlinkUrl() 'contentobject_attribute_id' => 43, 'contentobject_attribute_version' => 6, 'url_id' => 24, + 'id' => 2, ], ];