Skip to content

Commit

Permalink
fix primary key check for resources
Browse files Browse the repository at this point in the history
  • Loading branch information
iszmais authored and chfsx committed Jul 26, 2024
1 parent 22b6a9b commit 62b668f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
[
Expand All @@ -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',
[
Expand Down

0 comments on commit 62b668f

Please sign in to comment.