From 2eab22324fecc8222bca3f041f42e005fa63a83f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nu=C5=A1a=20Puk=C5=A1i=C4=8D?= Date: Mon, 6 Oct 2025 19:16:42 +0200 Subject: [PATCH] Migration, 5 --- migrations/Version20250927120000.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/migrations/Version20250927120000.php b/migrations/Version20250927120000.php index 3bed7d1..60c3387 100644 --- a/migrations/Version20250927120000.php +++ b/migrations/Version20250927120000.php @@ -30,10 +30,6 @@ final class Version20250927120000 extends AbstractMigration // Add index on event.pubkey for author-based queries $this->addSql('CREATE INDEX IF NOT EXISTS IDX_EVENT_PUBKEY ON event (pubkey)'); - - // Add GIN index on tags JSON column for efficient JSON queries - // Note: json_ops is the operator class for JSON columns - $this->addSql('CREATE INDEX IF NOT EXISTS IDX_EVENT_TAGS_GIN ON event USING GIN (tags json_ops)'); } public function down(Schema $schema): void @@ -42,6 +38,5 @@ final class Version20250927120000 extends AbstractMigration $this->addSql('DROP INDEX IF EXISTS IDX_EVENT_KIND_CREATED'); $this->addSql('DROP INDEX IF EXISTS IDX_ARTICLE_SLUG'); $this->addSql('DROP INDEX IF EXISTS IDX_EVENT_PUBKEY'); - $this->addSql('DROP INDEX IF EXISTS IDX_EVENT_TAGS_GIN'); } }