From 62b668f1bbdafe419a98d06371a5ee064e4b3c8f Mon Sep 17 00:00:00 2001 From: iszmais Date: Thu, 18 Jul 2024 13:48:38 +0200 Subject: [PATCH] fix primary key check for resources --- .../classes/Setup/DB/class.ilResourceStorageDB80.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ILIAS/ResourceStorage/classes/Setup/DB/class.ilResourceStorageDB80.php b/components/ILIAS/ResourceStorage/classes/Setup/DB/class.ilResourceStorageDB80.php index 3f68b8d2eb75..c203c059f247 100755 --- a/components/ILIAS/ResourceStorage/classes/Setup/DB/class.ilResourceStorageDB80.php +++ b/components/ILIAS/ResourceStorage/classes/Setup/DB/class.ilResourceStorageDB80.php @@ -301,7 +301,7 @@ public function step_9(): void public function step_10(): void { - if (!$this->db->addPrimaryKey('il_resource_rca', ['rcid', 'rid'])) { + if (!$this->db->primaryExistsByFields('il_resource_rca', ['rcid', 'rid'])) { $this->db->addPrimaryKey( 'il_resource_rca', [ @@ -311,7 +311,7 @@ public function step_10(): void ); } - if (!$this->db->indexExistsByFields('il_resource_rc', ['rcid'])) { + if (!$this->db->primaryExistsByFields('il_resource_rc', ['rcid'])) { $this->db->addPrimaryKey( 'il_resource_rc', [