Error while using pulling schemas using drizzle-kit

Hey team,
I have a doubt regarding the setup 🙂

  • My setup is based on drizzle(postgres) + supabase + next-JS 14.
So my doubt is :
I successfully created migrations (initial-no data). and since its on supabase, thought to add a stripe-subscription template 🙂.
Although in supabase, i can see the newly added tables, when is use pnpm drizzle-kit pull to update my local schema, it shows the following error :


Searched the web, and even dived into the drizzle-kit code (😐) , but couldn't find a fix. !
Is it because, i am pulling from an empty table or is there something wrong.. ?

Tried to pull each individual tables (pnpm drizzle-kit pull --dialect=postgresql --url=postgresql://postgres.bxlseovkecltfxpbnjus:[]@aws-0-ap-southeast-1.pooler.supabase.com:6543/postgres --out=./db/schema.ts ) ,

  • it successfully pulls each individual schema.
But when tried to pull all together, throws an error 😐
image.png
Was this page helpful?