Skip to content

Commit b3c51e3

Browse files
authored
Merge pull request #92 from utopia-php/fix-index-validation
Validate index array support
2 parents 626aa1f + 696b1c8 commit b3c51e3

2 files changed

Lines changed: 14 additions & 13 deletions

File tree

composer.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Migration/Destinations/Appwrite.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,8 @@ protected function createIndex(Index $resource): bool
841841
$validator = new IndexValidator(
842842
$tableColumns,
843843
$this->database->getAdapter()->getMaxIndexLength(),
844-
$this->database->getAdapter()->getInternalIndexesKeys()
844+
$this->database->getAdapter()->getInternalIndexesKeys(),
845+
$this->database->getAdapter()->getSupportForIndexArray(),
845846
);
846847

847848
if (!$validator->isValid($index)) {

0 commit comments

Comments
 (0)