Unable To push updates to my DB. Maybe issue with the versions?
A few things seem to be going wrong for me.
1. I went to push some schema changes to my drizzle db using
pnpm drizzle-kit push
(from what I read there no longer using push:pg) .
I added a userId column in an images table. However I get the message in the terminal saying if I meant to use push:pg. I had changed the drizzle config file from driver:pg to dialect:"postgresql" would that be the issue? I also change the connectionString to url. Maybe I'm in the wrong version.
My other issue is in the schema file. sql is not being found when imported from the drizzle-orm. Is this called something else?
using:
drizzle-kit 0.20.17
drizzle-orm 0.29.4![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1240363695553642537/Screenshot_2024-05-15_at_10.49.08_AM.png)
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1240363695897579530/Screenshot_2024-05-15_at_10.49.19_AM.png)
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1240363696413216788/Screenshot_2024-05-15_at_11.00.57_AM.png)
1 Reply
Hey @CBaker. You should update drizzle kit to the latest version to use new features