Data being uploaded , schema not updating
Hello everyone,
This is my first project using Drizzle kit/ORM with Vercel Postgres. I can't seem to get the schema to be uploaded to the database. I can add data, but the schema remains unchanged.
Any idea what's causing the issue?
Any help would be greatly appreciated.
I have attached screenshots. If you need any additional files, just let me know.
I have used generate , migrate and push, and nothing seems to work. New data is added, but according to teh rpeviosu schema.
Thanks in advance.
4 Replies
Could it have something to do with config files?
It's not pushing the schema to teh Vercel Postgres db. Can anybody please direct me as to where the prolem lies? Thanks in advance
Hello, @nr7751! Am I right that your problem is that your changes in drizzle schema are not applied to your db table? If so, could you please provide me your workflow for migrations?
Hi @solo. Thanks for your reply. It's appreciated.
It seems it's been my mistake all along. In my schema, I hadn't changed the column name, so it was still showing the old version. Since the data itself was being added, I interpreted that as Drizzle updating data but not the schema. Things seem to be working now. For some reason, the Vercel dashboard doesn't show all the columns, but I suppose that speaks to the primitive nature of that dashboard. Drizzle Studio shows them all.
I will now define the rest of the tables. I'm bound to face some challenegs , but I'll be sure to count on the gracious help of this Discord.
Again, thanks for your time.
Have a great day!
Super, thanks, have a great day:)