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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user