Skip to content

Commit

Permalink
(OraklNode) Add missing index (#2170)
Browse files Browse the repository at this point in the history
* feat: add missing indexes

* fix: fix based on feedback
  • Loading branch information
nick-bisonai authored Aug 22, 2024
1 parent 93c2163 commit f9c0ed5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions node/migrations/node/000033_feed_data_index.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DROP INDEX IF EXISTS feed_data_feed_id_idx;
DROP INDEX IF EXISTS feed_data_timestamp_idx;
2 changes: 2 additions & 0 deletions node/migrations/node/000033_feed_data_index.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE INDEX IF NOT EXISTS feed_data_feed_id_idx ON feed_data(feed_id);
CREATE INDEX IF NOT EXISTS feed_data_timestamp_idx ON feed_data(timestamp);
1 change: 1 addition & 0 deletions node/migrations/node/000034_feeds_index.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP INDEX IF EXISTS feeds_config_id_idx;
1 change: 1 addition & 0 deletions node/migrations/node/000034_feeds_index.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE INDEX IF NOT EXISTS feeds_config_id_idx ON feeds(config_id);

0 comments on commit f9c0ed5

Please sign in to comment.