From c0fb77f989714eb52d5b9b91f3e3fe39a5c5e7e6 Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Fri, 19 Apr 2024 11:05:04 -0700 Subject: [PATCH] Remove first two unused indexes --- .../20240419172419_remove-unused-indexes-pt-1.down.sql | 5 +++++ .../20240419172419_remove-unused-indexes-pt-1.up.sql | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 pkg/migrations/messages/20240419172419_remove-unused-indexes-pt-1.down.sql create mode 100644 pkg/migrations/messages/20240419172419_remove-unused-indexes-pt-1.up.sql diff --git a/pkg/migrations/messages/20240419172419_remove-unused-indexes-pt-1.down.sql b/pkg/migrations/messages/20240419172419_remove-unused-indexes-pt-1.down.sql new file mode 100644 index 00000000..325ca56d --- /dev/null +++ b/pkg/migrations/messages/20240419172419_remove-unused-indexes-pt-1.down.sql @@ -0,0 +1,5 @@ +SET statement_timeout = 0; + +--bun:split + +CREATE INDEX CONCURRENTLY IF NOT EXISTS message_pubsubTopic_idx ON public.message (pubsubTopic); diff --git a/pkg/migrations/messages/20240419172419_remove-unused-indexes-pt-1.up.sql b/pkg/migrations/messages/20240419172419_remove-unused-indexes-pt-1.up.sql new file mode 100644 index 00000000..ef45551c --- /dev/null +++ b/pkg/migrations/messages/20240419172419_remove-unused-indexes-pt-1.up.sql @@ -0,0 +1,9 @@ +SET statement_timeout = 0; + +--bun:split + +DROP INDEX CONCURRENTLY IF EXISTS messageindex; + +-- bun:split + +DROP INDEX CONCURRENTLY IF EXISTS message_pubsubtopic_idx;