From dbd965ba784b373cd2aa1476efbdb943dae5ec11 Mon Sep 17 00:00:00 2001 From: phamphong9981 Date: Wed, 18 Sep 2024 15:05:44 +0700 Subject: [PATCH] refactor: account balance index denom amount --- ...0240918080156_account_balance_index_denom_amount.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 migrations/evm/20240918080156_account_balance_index_denom_amount.ts diff --git a/migrations/evm/20240918080156_account_balance_index_denom_amount.ts b/migrations/evm/20240918080156_account_balance_index_denom_amount.ts new file mode 100644 index 000000000..275d461dc --- /dev/null +++ b/migrations/evm/20240918080156_account_balance_index_denom_amount.ts @@ -0,0 +1,10 @@ +import { Knex } from 'knex'; + +export async function up(knex: Knex): Promise { + await knex.raw(`set statement_timeout to 0`); + await knex.raw( + 'CREATE INDEX account_balance_denom_amount_index ON account_balance(denom, amount);' + ); +} + +export async function down(knex: Knex): Promise {}