diff --git a/migrations/Version20250927120000.php b/migrations/Version20250927120000.php index cd05c94..c0670e2 100644 --- a/migrations/Version20250927120000.php +++ b/migrations/Version20250927120000.php @@ -32,7 +32,8 @@ final class Version20250927120000 extends AbstractMigration $this->addSql('CREATE INDEX IF NOT EXISTS IDX_EVENT_PUBKEY ON event (pubkey)'); // Add GIN index on tags JSON column for efficient JSON queries - $this->addSql('CREATE INDEX IF NOT EXISTS IDX_EVENT_TAGS_GIN ON event USING GIN (tags)'); + // Note: jsonb_ops is the default operator class for JSONB columns + $this->addSql('CREATE INDEX IF NOT EXISTS IDX_EVENT_TAGS_GIN ON event USING GIN (tags jsonb_ops)'); } public function down(Schema $schema): void