From f9484d7cfdc4d927b8f3b8068854cf28a2559cb4 Mon Sep 17 00:00:00 2001 From: Chengxuan Xing Date: Wed, 27 Mar 2024 11:05:31 +0000 Subject: [PATCH] adding index for status field Signed-off-by: Chengxuan Xing --- .../postgres/000009_add_transactions_status_index.down.sql | 1 + .../postgres/000009_add_transactions_status_index.up.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 db/migrations/postgres/000009_add_transactions_status_index.down.sql create mode 100644 db/migrations/postgres/000009_add_transactions_status_index.up.sql diff --git a/db/migrations/postgres/000009_add_transactions_status_index.down.sql b/db/migrations/postgres/000009_add_transactions_status_index.down.sql new file mode 100644 index 00000000..9651d311 --- /dev/null +++ b/db/migrations/postgres/000009_add_transactions_status_index.down.sql @@ -0,0 +1 @@ +DROP INDEX IF EXISTS transactions_status; \ No newline at end of file diff --git a/db/migrations/postgres/000009_add_transactions_status_index.up.sql b/db/migrations/postgres/000009_add_transactions_status_index.up.sql new file mode 100644 index 00000000..4c57b567 --- /dev/null +++ b/db/migrations/postgres/000009_add_transactions_status_index.up.sql @@ -0,0 +1 @@ +CREATE INDEX transactions_status ON transactions(status); \ No newline at end of file