diff options
author | dartcafe <github@dartcafe.de> | 2022-01-22 20:43:49 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2022-01-23 03:09:53 +0300 |
commit | 5c111be621e01163007155f0d50f55dbb089ef97 (patch) | |
tree | a209c8d10c3fae8f06673c4e592115ee066006ec /lib | |
parent | 53f9ef47724c0152b04c899eadab4002a41eed27 (diff) |
calming psalm
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Command/Db/Rebuild.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Command/Db/Rebuild.php b/lib/Command/Db/Rebuild.php index 03810afa..4bd27c51 100644 --- a/lib/Command/Db/Rebuild.php +++ b/lib/Command/Db/Rebuild.php @@ -117,7 +117,7 @@ class Rebuild extends Command { if ($schema->hasTable($tableName)) {
$table = $schema->getTable($tableName);
if (!$table->hasIndex($values['name'])) {
- if ($values['unique']) {
+ if ($values['unique'] === true) {
$table->addUniqueIndex($values['columns'], $values['name']);
$output->writeln('<info> - Added unique index ' . $values['name'] . ' to ' . $tableName . '</info>');
} else {
|