fix: Avoid too large index on postgres as indexing just the last_editor column is enough

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-11-06 17:30:31 +01:00
parent cc5e6c349a
commit c2fd39779f
3 changed files with 63 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ class Version10800Date20220422061816 extends SimpleMigrationStep {
$indexAdded = $this->addIndex($schema,
'deck_cards',
'idx_last_editor', [
'last_editor', 'description_prev'
'last_editor' /*, 'description_prev' */
], [],
// Adding a partial index on the description_prev as it is only used for a NULL check
['lengths' => [null, 1]]