Skip to content

Commit

Permalink
Index validation internal keys
Browse files Browse the repository at this point in the history
  • Loading branch information
fogelito committed Nov 11, 2024
1 parent 4d16791 commit f47c885
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 51 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"ext-curl": "*",
"ext-openssl": "*",
"appwrite/appwrite": "11.1.*",
"utopia-php/database": "0.53.*",
"utopia-php/database": "dev-fix-index-validation as 0.53.999",
"utopia-php/storage": "0.18.*",
"utopia-php/dsn": "0.2.*",
"utopia-php/framework": "0.33.*"
Expand Down
154 changes: 105 additions & 49 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 f47c885

Please sign in to comment.