From aac13c613044ae053e63d39a12a0e320e0104c86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20C=C3=A1rdenas?= Date: Tue, 21 Jun 2022 10:59:31 -0500 Subject: [PATCH] fix: add value indices on nft_custody views (#1207) --- src/migrations/1655235863682_nft_custody_value_index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/migrations/1655235863682_nft_custody_value_index.ts diff --git a/src/migrations/1655235863682_nft_custody_value_index.ts b/src/migrations/1655235863682_nft_custody_value_index.ts new file mode 100644 index 0000000000..17cb3da963 --- /dev/null +++ b/src/migrations/1655235863682_nft_custody_value_index.ts @@ -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 { + pgm.createIndex('nft_custody', 'value', { method: 'hash' }); + pgm.createIndex('nft_custody_unanchored', 'value', { method: 'hash' }); +}