-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add optimism withdrawal finalize time
- Loading branch information
1 parent
6eaa98b
commit 0ae3414
Showing
3 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
migrations/evm/20240723063129_add_finalize_time_to_op_withdrawal.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Knex } from 'knex'; | ||
import { OptimismWithdrawal } from '../../src/models'; | ||
|
||
export async function up(knex: Knex): Promise<void> { | ||
await knex.schema.alterTable(OptimismWithdrawal.tableName, (table) => { | ||
table.timestamp('finalize_time'); | ||
}); | ||
} | ||
|
||
export async function down(knex: Knex): Promise<void> { | ||
await knex.schema.alterTable(OptimismWithdrawal.tableName, (table) => { | ||
table.dropColumn('finalize_time'); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters