1
0
Fork 0
mirror of synced 2024-10-03 10:46:27 +13:00

Add index

This commit is contained in:
fogelito 2023-06-07 10:01:00 +03:00
parent 1fea564735
commit 8b9ab096b7

View file

@ -154,7 +154,7 @@ class V19 extends Migration
}
try {
$this->pdo->prepare("ALTER TABLE {$collectionName} ADD INDEX `_permission` (`_permission` ASC, `_type` ASC, `_document` ASC)")->execute();
$this->pdo->prepare("ALTER TABLE {$collectionName} ADD INDEX `_permission` (`_permission`, `_type`, `_document`)")->execute();
} catch (\Throwable $th) {
Console::warning($th->getMessage());
}