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;