Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2022-01-22 20:43:49 +0300
committerdartcafe <github@dartcafe.de>2022-01-23 03:09:53 +0300
commit5c111be621e01163007155f0d50f55dbb089ef97 (patch)
treea209c8d10c3fae8f06673c4e592115ee066006ec /lib
parent53f9ef47724c0152b04c899eadab4002a41eed27 (diff)
calming psalm
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/Command/Db/Rebuild.php2
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 {