Skip to content

Commit

Permalink
fix: change id type to bigint in evm_internal_transaction (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
fibonacci998 authored Oct 14, 2024
1 parent 4465839 commit b1e7bf2
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 b1e7bf2

Please sign in to comment.