migration: fix index addition check
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/807/merge
parent
12bd8823e7
commit
9a9783bea1
|
@ -44,7 +44,9 @@ class Version505003Date20230930155856 extends SimpleMigrationStep
|
||||||
|
|
||||||
$table = $schema->getTable('memories');
|
$table = $schema->getTable('memories');
|
||||||
|
|
||||||
$table->addIndex(['isvideo'], 'memories_isvideo_idx');
|
if (!$table->hasIndex('memories_isvideo_idx')) {
|
||||||
|
$table->addIndex(['isvideo'], 'memories_isvideo_idx');
|
||||||
|
}
|
||||||
|
|
||||||
return $schema;
|
return $schema;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue