From 188b047ff7be5eb77c779fa5b0a97eb95a4b585e Mon Sep 17 00:00:00 2001 From: fibonacci998 Date: Mon, 14 Oct 2024 10:04:43 +0700 Subject: [PATCH] feat: add statement_timeout to migration --- .../evm/20241011095922_alter_id_to_bigint_evm_internal_tx.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migrations/evm/20241011095922_alter_id_to_bigint_evm_internal_tx.ts b/migrations/evm/20241011095922_alter_id_to_bigint_evm_internal_tx.ts index fe751ba36..1d1bf09e6 100644 --- a/migrations/evm/20241011095922_alter_id_to_bigint_evm_internal_tx.ts +++ b/migrations/evm/20241011095922_alter_id_to_bigint_evm_internal_tx.ts @@ -1,6 +1,7 @@ import { Knex } from 'knex'; export async function up(knex: Knex): Promise { + await knex.raw(`set statement_timeout to 0`); await knex.raw( 'ALTER TABLE evm_internal_transaction ALTER COLUMN "id" SET DATA TYPE bigint' ); @@ -8,6 +9,7 @@ export async function up(knex: Knex): Promise { } export async function down(knex: Knex): Promise { + await knex.raw(`set statement_timeout to 0`); await knex.raw( 'ALTER TABLE evm_internal_transaction ALTER COLUMN "id" SET DATA TYPE integer' );