From 175bf77efe8d1ae629f6f2696d01c777cdb2a923 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Sat, 21 May 2022 17:37:34 -0400 Subject: [PATCH] add timestamp index to accounts --- ...07_add_next_notification_check_at_index_to_accounts.down.sql | 0 ...0007_add_next_notification_check_at_index_to_accounts.up.sql | 2 ++ 2 files changed, 2 insertions(+) create mode 100644 migrations/000007_add_next_notification_check_at_index_to_accounts.down.sql create mode 100644 migrations/000007_add_next_notification_check_at_index_to_accounts.up.sql diff --git a/migrations/000007_add_next_notification_check_at_index_to_accounts.down.sql b/migrations/000007_add_next_notification_check_at_index_to_accounts.down.sql new file mode 100644 index 0000000..e69de29 diff --git a/migrations/000007_add_next_notification_check_at_index_to_accounts.up.sql b/migrations/000007_add_next_notification_check_at_index_to_accounts.up.sql new file mode 100644 index 0000000..d5ef1a7 --- /dev/null +++ b/migrations/000007_add_next_notification_check_at_index_to_accounts.up.sql @@ -0,0 +1,2 @@ +CREATE INDEX accounts_next_notification_check_at_idx ON accounts USING BRIN (next_notification_check_at timestamp_minmax_ops); +