Database won't update
Hi. I made some changes to my schema and run commands drizzle-kit generate and migrate. There were no errors, but schema (in studio at least) did not change. I tried with push command, which did ask me some question what fields I want to keep etc. But there is still old schema in studio (and also my new columns are not recognized by vs code).
What should I do?
3 Replies
I don't want to remove my entire docker image yet, but I am thinking about it in this point
Another thing I want to add is that I am tweaking database and I am removing previous migrations. I remove SQL and json files, and I set entries to [] in _journal.json
if youre going to remove migrations you needed to use drizzle-kit drop
once you start doing it manually its too easy to mess it up,.
bes t thing if its messed up, is get your database how you want it, delete the drizzle schema, delete your migrations from your code base and do an intro spect and start from there
How do I restart an entire database? Removing tables etc?