Skip to content

Commit

Permalink
[IND-558]: Add index to address for compliance_data (#1001)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher-Li authored Jan 22, 2024
1 parent 4dfaadb commit 5bb532f
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as Knex from 'knex';

export async function up(knex: Knex): Promise<void> {
// eslint-disable-next-line @typescript-eslint/quotes
await knex.raw(`
CREATE INDEX CONCURRENTLY IF NOT EXISTS "compliance_data_address_index" ON "compliance_data" ("address");
`);
}

export async function down(knex: Knex): Promise<void> {
await knex.raw(`
DROP INDEX CONCURRENTLY IF EXISTS "compliance_data_address_index";
`);
}

export const config = {
transaction: false,
};

0 comments on commit 5bb532f

Please # to comment.