diff --git a/lib/Migration/Version1000Date20200306161713.php b/lib/Migration/Version1000Date20200306161713.php index a9ce3b104..a4ed0ebce 100644 --- a/lib/Migration/Version1000Date20200306161713.php +++ b/lib/Migration/Version1000Date20200306161713.php @@ -271,7 +271,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt ]); $table->setPrimaryKey(['id']); $table->addIndex(['participant'], 'deck_assigned_users_idx_p'); - $table->addIndex(['card_id'], 'deck_assigned_users_idx_c'); + //$table->addIndex(['card_id'], 'deck_assigned_users_idx_c'); } if (!$schema->hasTable('deck_board_acl')) { @@ -307,7 +307,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt ]); $table->setPrimaryKey(['id']); $table->addUniqueIndex(['board_id', 'type', 'participant'], 'deck_board_acl_uq_i'); - $table->addIndex(['board_id'], 'deck_board_acl_idx_i'); + //$table->addIndex(['board_id'], 'deck_board_acl_idx_i'); } return $schema; } diff --git a/lib/Migration/Version11000Date20240222115515.php b/lib/Migration/Version11000Date20240222115515.php new file mode 100644 index 000000000..bef482128 --- /dev/null +++ b/lib/Migration/Version11000Date20240222115515.php @@ -0,0 +1,35 @@ +getTable('deck_assigned_users'); + if($assignedUsersTable->hasIndex('deck_assigned_users_idx_c')) { + $assignedUsersTable->dropIndex('deck_assigned_users_idx_c'); + $returnValue = $schema; + } + + $boardAclTable = $schema->getTable('deck_board_acl'); + if($boardAclTable->hasIndex('deck_board_acl_idx_i')) { + $boardAclTable->dropIndex('deck_board_acl_idx_i'); + $returnValue = $schema; + } + return $returnValue; + } +}