Drizzlekit push fails with "database...TypeError: Cannot use 'in' operator to search for 'default'"

I'm trying to run a migration on my Neon postgres instance, but I keep getting this error: Any ideas on how to solve/workaround this error?
Reading config file '/Users/wilson/Developer/Projects/rewardmojo/pkgs/db/drizzle.config.ts'
Using 'postgres' driver for database querying
[✓] Pulling schema from database...TypeError: Cannot use 'in' operator to search for 'default' in undefined
at /Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18362:23
at Array.map (<anonymous>)
at alternationsInColumn (/Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18361:10)
at /Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18321:49
at Array.map (<anonymous>)
at findAlternationsInTable (/Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18321:37)
at /Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18203:14
at Array.map (<anonymous>)
at applyJsonDiff (/Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18201:69)
at applyPgSnapshotsDiff (/Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:19822:26)
Reading config file '/Users/wilson/Developer/Projects/rewardmojo/pkgs/db/drizzle.config.ts'
Using 'postgres' driver for database querying
[✓] Pulling schema from database...TypeError: Cannot use 'in' operator to search for 'default' in undefined
at /Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18362:23
at Array.map (<anonymous>)
at alternationsInColumn (/Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18361:10)
at /Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18321:49
at Array.map (<anonymous>)
at findAlternationsInTable (/Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18321:37)
at /Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18203:14
at Array.map (<anonymous>)
at applyJsonDiff (/Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18201:69)
at applyPgSnapshotsDiff (/Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:19822:26)
6 Replies
WilsonSquared
WilsonSquaredOP6mo ago
My schema:
Storm
Storm6mo ago
Have you found a solution for this?
WilsonSquared
WilsonSquaredOP6mo ago
No I haven't unfortunately 😦 Was able to sorta workaround it by using migrate, but it's a shame that I can no longer use push
Storm
Storm6mo ago
I see, thank you.
Storm
Storm6mo ago
@Andrew Sherman thank you!
Want results from more Discord servers?
Add your server