Skip to content

Commit d20ef6a

Browse files
committed
fix(FsEvents): add cc_fs_events_full_idx index in the existing migration for new installs
Signed-off-by: kyteinsky <kyteinsky@gmail.com>
1 parent a560a97 commit d20ef6a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/Migration/Version004004000Date20250523135634.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
4848
]);
4949

5050
$table->setPrimaryKey(['id'], 'cc_fs_events_id');
51+
// Added post-release to ensure new installations get the index
52+
// (existing installations get it via AddMissingIndicesListenerFsEvents)
53+
$table->addIndex(['user_id', 'type', 'node_id'], 'cc_fs_events_full_idx');
5154
}
5255

5356
return $schema;

0 commit comments

Comments
 (0)