Migrations not working with Neon.Tech?
So i was trying to use drizzle for the first time. a little bit of a noob but im not sure what im doing wrong here. when i go to neon i can see the compute starting so it seems like there's a connection happening, but the actual table is not created? I tried using the neon driver first and couldn't get it working. and when i print my connectionString i see it properly using tsx to run the file
Can anyone help?
src/db/index.ts
src/db/schema.ts
script:
"generate": "drizzle-kit generate:pg --out src/db/migrations --schema src/db/schema.ts",
1 Reply
I get the error as well when running tsx on index.ts but i have ssl set to require, so im confused
doh! needed to add ssl require to the migrationClient. so now i can connect to neon properly