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:
Solved by deleting migrations folder and table, using push to bypass migrations, changing back the schema and generating and migrating at long last. Ufff! 😄
Jump to solution
4 Replies
Nick
Nick7mo ago
have you exported those schemas? think that's a requirement
nr7751
nr7751OP7mo ago
@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
nr7751
nr77517mo ago
Solved by deleting migrations folder and table, using push to bypass migrations, changing back the schema and generating and migrating at long last. Ufff! 😄
Nick
Nick7mo ago
turned it off and back on again confirmed?
Want results from more Discord servers?
Add your server