diff --git a/migrations/Version20260923101400.php b/migrations/Version20260923101400.php new file mode 100644 index 00000000..35274a92 --- /dev/null +++ b/migrations/Version20260923101400.php @@ -0,0 +1,38 @@ +addSql('CREATE INDEX idx_message_unseen_mailbox ON message (mailbox_id) WHERE seen_at IS NULL'); + } + + public function down(Schema $schema): void + { + $this->addSql('DROP INDEX idx_message_unseen_mailbox'); + } +}