Skip to content

Commit dc339c8

Browse files
committed
fix(db): make text_documents_context_index unique
Signed-off-by: Max <max@nextcloud.com>
1 parent ad77af2 commit dc339c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Migration/Version090000Date20260820132113.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
3232

3333
$table = $schema->getTable('text_documents');
3434
if (!$table->hasIndex('text_documents_context_index')) {
35-
$table->addIndex(['context_type', 'context_id'], 'text_documents_context_index');
35+
$table->addUniqueIndex(['context_type', 'context_id'], 'text_documents_context_index');
3636
}
3737

3838
return $schema;

0 commit comments

Comments
 (0)