Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/Migration/Version080000Date20260331132113.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array
// We need to add the index with a DESC manually
// See https://github.com/doctrine/orm/issues/8128
if ($this->connection->getDatabaseProvider() === IDBConnection::PLATFORM_POSTGRES) {
$stm = $this->connection->prepare('CREATE INDEX CONCURRENTLY text_steps_doc_id_id_index ON **PREFIX**text_steps (document_id, id DESC);');
$stm = $this->connection->prepare('CREATE INDEX CONCURRENTLY text_steps_doc_id_id_index ON *PREFIX*text_steps (document_id, id DESC);');
} elseif ($this->connection->getDatabaseProvider() === IDBConnection::PLATFORM_ORACLE) {
$stm = $this->connection->prepare('CREATE INDEX text_steps_doc_id_id_index ON **PREFIX**text_steps (document_id, id DESC) ONLINE;');
$stm = $this->connection->prepare('CREATE INDEX text_steps_doc_id_id_index ON *PREFIX*text_steps (document_id, id DESC) ONLINE;');
} elseif ($this->connection->getDatabaseProvider() === IDBConnection::PLATFORM_SQLITE) {
$stm = $this->connection->prepare('CREATE INDEX text_steps_doc_id_id_index ON **PREFIX**text_steps (document_id, id DESC);');
$stm = $this->connection->prepare('CREATE INDEX text_steps_doc_id_id_index ON *PREFIX*text_steps (document_id, id DESC);');
} else {
throw new \RuntimeException('Unsupported platform');
}
Expand Down
Loading