Skip to content

Commit

Permalink
fix: add index on round to receipts table
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrus committed Mar 24, 2022
1 parent c1ed118 commit f1456ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions db/migrations/20220324091030_receipt_round_index.up.sql
@@ -0,0 +1 @@
CREATE INDEX IF NOT EXISTS receipt_on_round ON receipts USING btree (round);
6 changes: 6 additions & 0 deletions db/migrations/migrations.go
Expand Up @@ -101,6 +101,12 @@ func init() {
Name: "20220109122505",
Up: LogsUp,
},
// Add missing receipt on round index, used in pruning.
// https://github.com/oasisprotocol/emerald-web3-gateway/issues/227
{
Name: "20220324091030",
Up: migrator.NewSQLMigrationFunc(migrations, "20220324091030_receipt_round_index.up.sql"),
},
} {
Migrations.Add(m)
}
Expand Down

0 comments on commit f1456ce

Please sign in to comment.