Skip to content

Commit 10556f6

Browse files
authored
Merge pull request #127 from hack-a-chain-software/fixes
fix: changes found during the backfill
2 parents 8f49dea + 6c7dd76 commit 10556f6

30 files changed

+804
-1349
lines changed
-85 KB
Binary file not shown.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
"use strict";
2+
3+
/** @type {import('sequelize-cli').Migration} */
4+
module.exports = {
5+
async up(queryInterface) {
6+
await queryInterface.addIndex("Guards", {
7+
name: "guards_publickey_chainid_account_unique_idx",
8+
fields: ["publicKey", "chainId", "account"],
9+
unique: true,
10+
});
11+
12+
await queryInterface.addIndex("Guards", {
13+
name: "guards_publickey_idx",
14+
fields: ["publicKey"],
15+
});
16+
},
17+
18+
async down(queryInterface) {
19+
await queryInterface.removeIndex(
20+
"Guards",
21+
"guards_publicKey_chainId_account_unique_idx",
22+
);
23+
24+
await queryInterface.removeIndex("Guards", "guards_publickey_idx");
25+
},
26+
};

indexer/migrations/20241105001040-add-indexes-to-publickeysaccounts.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)