Skip to content

Commit aac13c6

Browse files
authored
fix: add value indices on nft_custody views (#1207)
1 parent adae553 commit aac13c6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* eslint-disable @typescript-eslint/naming-convention */
2+
import { MigrationBuilder, ColumnDefinitions } from 'node-pg-migrate';
3+
4+
export const shorthands: ColumnDefinitions | undefined = undefined;
5+
6+
export async function up(pgm: MigrationBuilder): Promise<void> {
7+
pgm.createIndex('nft_custody', 'value', { method: 'hash' });
8+
pgm.createIndex('nft_custody_unanchored', 'value', { method: 'hash' });
9+
}

0 commit comments

Comments
 (0)