1
0
Fork 0
mirror of synced 2024-07-09 00:16:13 +12:00

Add index

This commit is contained in:
fogelito 2023-06-07 09:59:13 +03:00
parent 2a9b76b205
commit 1fea564735

View file

@ -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());
} }