Skip to content

Commit

Permalink
fix: add value indices on nft_custody views (#1207)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcr authored Jun 21, 2022
1 parent adae553 commit aac13c6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/migrations/1655235863682_nft_custody_value_index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { MigrationBuilder, ColumnDefinitions } from 'node-pg-migrate';

export const shorthands: ColumnDefinitions | undefined = undefined;

export async function up(pgm: MigrationBuilder): Promise<void> {
pgm.createIndex('nft_custody', 'value', { method: 'hash' });
pgm.createIndex('nft_custody_unanchored', 'value', { method: 'hash' });
}

0 comments on commit aac13c6

Please sign in to comment.