Drizzle kit generating migrations but not migrating, claiming all remains the same
Can anybody help? I changed my schema to add 1 column to 2 new tables. I hadn’t updated kit in a long while, which I had to do. After all the updating, migration files show these 2 new columns. And when I run drizzle generate it works fine and generates teh migrations files but MIgrate claims db is teh same and does nothing.
shoudl I go for push, instead?
Thanks in advance
Solution:Jump to solution
Solved by deleting migrations folder and table, using push to bypass migrations, changing back the schema and generating and migrating at long last. Ufff! 😄
4 Replies
have you exported those schemas? think that's a requirement
@Nick , yes every table is exported. I never had any issues with generating and migrating before with this db. It's the first time
Solution
Solved by deleting migrations folder and table, using push to bypass migrations, changing back the schema and generating and migrating at long last. Ufff! 😄
turned it off and back on again confirmed?