Skip to content

Commit

Permalink
fix: add indexes to pox3_events table used for stacker lookup endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
zone117x committed Jul 6, 2023
1 parent 5842784 commit 86304be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions migrations/1688650854502_pox_events_indexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
exports.up = pgm => {
pgm.createIndex('pox2_events', 'delegate_to');
pgm.createIndex('pox2_events', 'unlock_burn_height');

pgm.createIndex('pox3_events', 'delegate_to');
pgm.createIndex('pox3_events', 'unlock_burn_height');
}

/** @param { import("node-pg-migrate").MigrationBuilder } pgm */
exports.down = pgm => {
pgm.dropIndex('pox2_events', 'delegate_to');
pgm.dropIndex('pox2_events', 'unlock_burn_height');

pgm.dropIndex('pox3_events', 'delegate_to');
pgm.dropIndex('pox3_events', 'unlock_burn_height');
}

0 comments on commit 86304be

Please sign in to comment.