Applying variable naming scheme, returning schema only if changes are made for performance and removing the original

creation of the indicies for new installations

Signed-off-by: Rob Emery <git@mintsoft.net>
This commit is contained in:
Rob Emery
2024-02-29 09:02:08 +00:00
committed by Julius Härtl
parent d841c960a3
commit afb50574f7
2 changed files with 14 additions and 27 deletions

View File

@@ -271,7 +271,7 @@ class Version1000Date20200306161713 extends SimpleMigrationStep {
]);
$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 @@ class Version1000Date20200306161713 extends SimpleMigrationStep {
]);
$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;
}