Skip to content
Merged
Show file tree
Hide file tree
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
fix(postgres): Use a unique index name
ts_session is already used in Talk since Nextcloud 22.
Unluckily in Postgres index names have to be unique inside the database,
not only per table.

Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Jul 19, 2023
commit 0f2520c357bd7afb63bc46b295de51fc9a06fd42
2 changes: 1 addition & 1 deletion lib/Listeners/AddMissingIndicesListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ public function handle(Event $event): void {
return;
}

$event->addMissingIndex('text_steps', 'ts_session', ['session_id']);
$event->addMissingIndex('text_steps', 'textstep_session', ['session_id']);
}
}
2 changes: 1 addition & 1 deletion lib/Migration/Version010000Date20190617184535.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
$table->setPrimaryKey(['id']);
$table->addIndex(['document_id'], 'rd_steps_did_idx');
$table->addIndex(['version'], 'rd_steps_version_idx');
$table->addIndex(['session_id'], 'ts_session');
$table->addIndex(['session_id'], 'textstep_session');
}
return $schema;
}
Expand Down