Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed indexer/diagram/indexer - public.png
Binary file not shown.
26 changes: 26 additions & 0 deletions indexer/migrations/20241105001040-add-indexes-to-guards.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface) {
await queryInterface.addIndex("Guards", {
name: "guards_publickey_chainid_account_unique_idx",
fields: ["publicKey", "chainId", "account"],
unique: true,
});

await queryInterface.addIndex("Guards", {
name: "guards_publickey_idx",
fields: ["publicKey"],
});
},

async down(queryInterface) {
await queryInterface.removeIndex(
"Guards",
"guards_publicKey_chainId_account_unique_idx",
);

await queryInterface.removeIndex("Guards", "guards_publickey_idx");
},
};

This file was deleted.

Loading
Loading