Skip to content

Commit 979619f

Browse files
fixed gin index issue
1 parent a92fd41 commit 979619f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database/Adapter/Postgres.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ public function createIndex(string $collection, string $id, string $type, array
893893
$key = "\"{$this->getNamespace()}_{$this->tenant}_{$collection}_{$id}\"";
894894
$attributes = \implode(', ', $attributes);
895895

896-
if ($this->sharedTables && \in_array($type, [Database::INDEX_KEY, Database::INDEX_UNIQUE, Database::INDEX_GIN])) {
896+
if ($this->sharedTables && \in_array($type, [Database::INDEX_KEY, Database::INDEX_UNIQUE])) {
897897
// Add tenant as first index column for best performance
898898
$attributes = "_tenant, {$attributes}";
899899
}

0 commit comments

Comments
 (0)