hello I want to add a table in my database (supabase). So I add this in supabase. And when I try to pull my table (from database supabase) with npx prisma db pull for uptdate prisma schema the command is blocked.
I try also this and I have the same result : npx prisma migrate dev
It’s been a while since I had assigned a command with prisma on this project but otherwise everything works because I can use the database in my project
I don’t know much prisma so I may have forgotten something Thank you for your help
I just fired up a new project to verify that this works:
Add .env file with database information, e.g.
where postgres.xxxxyyyyzzzz is they user name, and passpasspass is the password
Then run
And finally:
Which produces the prisma/schema.prisma file, first few lines:
Edit: Then I added a new table Foo, and ran
npx prisma db pullagain, adds the table to the schema