File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
scripts/migrations/src/migrations/processing_cache Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,10 @@ pnpm bootstrap:all
9494# To run one specific one
9595pnpm bootstrap:metadata
9696pnpm bootstrap:pricing
97- pnpm boostrap :strategyTimings
97+ pnpm bootstrap :strategyTimings
9898```
9999
100- 1 . Apply migrations:
100+ 8 . Apply migrations:
101101
102102```
103103pnpm db:migrate
Original file line number Diff line number Diff line change @@ -24,17 +24,17 @@ export async function up(db: Kysely<unknown>): Promise<void> {
2424 await db . schema
2525 . createTable ( "strategy_timings" )
2626 . addColumn ( "strategyId" , "text" , ( col ) => col . notNull ( ) )
27- . addColumn ( "address" , ADDRESS_TYPE )
27+ . addColumn ( "address" , ADDRESS_TYPE , ( col ) => col . notNull ( ) )
2828 . addColumn ( "timings" , "jsonb" )
2929 . addColumn ( "createdAt" , "timestamptz" , ( col ) => col . defaultTo ( sql `now()` ) )
3030 . addPrimaryKeyConstraint ( "strategy_timings_cache_pkey" , [ "address" ] )
3131 . execute ( ) ;
3232
3333 await db . schema
3434 . createTable ( "strategies_registry" )
35- . addColumn ( "address" , ADDRESS_TYPE )
35+ . addColumn ( "address" , ADDRESS_TYPE , ( col ) => col . notNull ( ) )
3636 . addColumn ( "id" , "text" )
37- . addColumn ( "chainId" , CHAIN_ID_TYPE )
37+ . addColumn ( "chainId" , CHAIN_ID_TYPE , ( col ) => col . notNull ( ) )
3838 . addColumn ( "handled" , "boolean" )
3939 . addPrimaryKeyConstraint ( "strategies_registry_pkey" , [ "address" , "chainId" ] )
4040 . execute ( ) ;
You can’t perform that action at this time.
0 commit comments