Skip to content

Commit

Permalink
add another log
Browse files Browse the repository at this point in the history
  • Loading branch information
0xOlias committed Nov 3, 2023
1 parent db13635 commit ed67b31
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/core/src/event-store/postgres/migrations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ import {
beforeEach((context) => setupEventStore(context, { skipMigrateUp: true }));

const seed_2023_07_24_0_drop_finalized = async (db: Kysely<any>) => {
console.log("before inserting any data", {
tableNames: (await db.introspection.getTables()).map((t) => t.name),
});

await db
.insertInto("blocks")
.values({ ...rpcToPostgresBlock(blockOne), chainId: 1 })
Expand Down Expand Up @@ -48,9 +52,9 @@ const seed_2023_07_24_0_drop_finalized = async (db: Kysely<any>) => {
.values(contractReadResultOne)
.execute();

const tables = await db.introspection.getTables();
const tableNames = tables.map((t) => t.name);
console.log("before inserting logFilterCachedRanges", { tableNames });
console.log("before inserting logFilterCachedRanges", {
tableNames: (await db.introspection.getTables()).map((t) => t.name),
});

await db
.insertInto("logFilterCachedRanges")
Expand Down

0 comments on commit ed67b31

Please sign in to comment.