Skip to content

Commit

Permalink
Merge pull request #57 from utopia-php/0.6.x-index-validation
Browse files Browse the repository at this point in the history
Index validation internal keys
  • Loading branch information
abnegate authored Nov 12, 2024
2 parents 4d16791 + 3d22890 commit 9a8c905
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 47 deletions.
139 changes: 93 additions & 46 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/Migration/Destinations/Appwrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,8 @@ protected function createIndex(Index $resource): bool

$validator = new IndexValidator(
$collectionAttributes,
$this->database->getAdapter()->getMaxIndexLength()
$this->database->getAdapter()->getMaxIndexLength(),
$this->database->getAdapter()->getInternalIndexesKeys()
);

if (!$validator->isValid($index)) {
Expand Down

0 comments on commit 9a8c905

Please sign in to comment.