Skip to content

Commit 3be72b7

Browse files
abnegateclaude
andcommitted
fix: skip schema index validation during shared-tables migration
Match the attribute validator's behavior: when isMigrating is true in shared-tables mode, skip the schema index check so indexes are always created fresh during migration rather than being matched against or dropping existing physical indexes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 93567b6 commit 3be72b7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Database/Database.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4576,7 +4576,8 @@ public function createIndex(string $collection, string $id, string $type, array
45764576
$created = false;
45774577
$existsInSchema = false;
45784578

4579-
if ($this->adapter->getSupportForSchemaIndexes()) {
4579+
if ($this->adapter->getSupportForSchemaIndexes()
4580+
&& !($this->adapter->getSharedTables() && $this->isMigrating())) {
45804581
$schemaIndexes = $this->getSchemaIndexes($collection->getId());
45814582
$filteredId = $this->adapter->filter($id);
45824583

0 commit comments

Comments
 (0)