migration: fix index addition check

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/807/merge
Varun Patil 2023-10-06 15:17:04 -07:00
parent 12bd8823e7
commit 9a9783bea1
1 changed files with 3 additions and 1 deletions

View File

@ -44,7 +44,9 @@ class Version505003Date20230930155856 extends SimpleMigrationStep
$table = $schema->getTable('memories');
if (!$table->hasIndex('memories_isvideo_idx')) {
$table->addIndex(['isvideo'], 'memories_isvideo_idx');
}
return $schema;
}