From 7f711064c207119fb482f90c1f4beb1fbb605f1a Mon Sep 17 00:00:00 2001 From: dimazhornyk Date: Thu, 26 Dec 2024 17:29:55 +0100 Subject: [PATCH] chore: create base_token_ratios_ratio_timestamp_idx index --- .../migrations/20241226161705_add_ratio_timestamp_index.down.sql | 1 + .../migrations/20241226161705_add_ratio_timestamp_index.up.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 core/lib/dal/migrations/20241226161705_add_ratio_timestamp_index.down.sql create mode 100644 core/lib/dal/migrations/20241226161705_add_ratio_timestamp_index.up.sql diff --git a/core/lib/dal/migrations/20241226161705_add_ratio_timestamp_index.down.sql b/core/lib/dal/migrations/20241226161705_add_ratio_timestamp_index.down.sql new file mode 100644 index 000000000000..c7c00d281ac3 --- /dev/null +++ b/core/lib/dal/migrations/20241226161705_add_ratio_timestamp_index.down.sql @@ -0,0 +1 @@ +DROP INDEX IF EXISTS base_token_ratios_ratio_timestamp_idx; diff --git a/core/lib/dal/migrations/20241226161705_add_ratio_timestamp_index.up.sql b/core/lib/dal/migrations/20241226161705_add_ratio_timestamp_index.up.sql new file mode 100644 index 000000000000..7f1074f86f84 --- /dev/null +++ b/core/lib/dal/migrations/20241226161705_add_ratio_timestamp_index.up.sql @@ -0,0 +1 @@ +CREATE INDEX IF NOT EXISTS base_token_ratios_ratio_timestamp_idx ON base_token_ratios (ratio_timestamp);