Add index
This commit is contained in:
parent
2a9b76b205
commit
1fea564735
|
@ -154,7 +154,7 @@ class V19 extends Migration
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$this->pdo->prepare("ALTER TABLE {$collectionName} ADD INDEX `_permission` (`_permission`, `_type`, `_document`)")->execute();
|
$this->pdo->prepare("ALTER TABLE {$collectionName} ADD INDEX `_permission` (`_permission` ASC, `_type` ASC, `_document` ASC)")->execute();
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
Console::warning($th->getMessage());
|
Console::warning($th->getMessage());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue