Skip to content

Commit

Permalink
fix: change id type to bigint in evm_internal_transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
fibonacci998 committed Oct 11, 2024
1 parent 4465839 commit d91c144
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Knex } from 'knex';

export async function up(knex: Knex): Promise<void> {
await knex.raw(
'ALTER TABLE evm_internal_transaction ALTER COLUMN "id" SET DATA TYPE bigint'
);
await knex.raw('ALTER SEQUENCE evm_internal_transaction_id_seq AS bigint');
}

export async function down(knex: Knex): Promise<void> {
await knex.raw(
'ALTER TABLE evm_internal_transaction ALTER COLUMN "id" SET DATA TYPE integer'
);
await knex.raw('ALTER SEQUENCE evm_internal_transaction_id_seq AS integer');
}

0 comments on commit d91c144

Please sign in to comment.