From bd183b392cd0cc7f06d1d892cc284bb2acb266b4 Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Thu, 9 May 2024 13:08:16 -0700 Subject: [PATCH] Remove if not exists --- .../messages/20240419172419_remove-unused-indexes.down.sql | 2 +- .../messages/20240419172419_remove-unused-indexes.up.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/migrations/messages/20240419172419_remove-unused-indexes.down.sql b/pkg/migrations/messages/20240419172419_remove-unused-indexes.down.sql index 2e613610..04c5e832 100644 --- a/pkg/migrations/messages/20240419172419_remove-unused-indexes.down.sql +++ b/pkg/migrations/messages/20240419172419_remove-unused-indexes.down.sql @@ -1,5 +1,5 @@ SET statement_timeout = 0; --bun:split +DROP INDEX CONCURRENTLY message_receivertimestamp_idx; -SELECT 1; diff --git a/pkg/migrations/messages/20240419172419_remove-unused-indexes.up.sql b/pkg/migrations/messages/20240419172419_remove-unused-indexes.up.sql index d6274815..5b805f0e 100644 --- a/pkg/migrations/messages/20240419172419_remove-unused-indexes.up.sql +++ b/pkg/migrations/messages/20240419172419_remove-unused-indexes.up.sql @@ -12,5 +12,5 @@ DROP INDEX IF EXISTS message_recvts_shouldexpire_idx; -- bun:split -- Replace recvts_shouldexpire_idx with an index just on receiver timestamp -- This index is used in our data pipelines to power the data warehouse for high level analytics on network growth -CREATE INDEX CONCURRENTLY IF NOT EXISTS message_receivertimestamp_idx ON public.message(receiverTimestamp); +CREATE INDEX CONCURRENTLY message_receivertimestamp_idx ON public.message(receiverTimestamp);