Deleted migrations, still can't create new

I wanted to reset my entire database so I deleted my entire migrations folder and ran generate again. It says "no schema changes" and does not create a migration. Any way to force it?
9 Replies
xamarot
xamarotOP2y ago
I have done this before and it's been working, seems like it may be a cache issue or something? Even when I change the schema, it says nothing has been changed. Even tried removing node_modules, clearing cache and reinstalling Anyone? Even if I remove my entire schema file I still get the "nothing to migrate". It doesn't seem to react to anything I do.
Andrii Sherman
sorry for a bit late reponse on this I need to get more info from you if you can share a minimal reproducible examplerepo. I can help you there
xamarot
xamarotOP2y ago
GitHub
GitHub - zicho/drizzle
Contribute to zicho/drizzle development by creating an account on GitHub.
xamarot
xamarotOP2y ago
Much more basic repo here, with the same issue https://github.com/zicho/bgcaV4
GitHub
GitHub - zicho/bgcaV4
Contribute to zicho/bgcaV4 development by creating an account on GitHub.
xamarot
xamarotOP2y ago
I don't exactky know why but changing the config from TS to JSON seem to have solved it
Andrii Sherman
I see a wrong path in your config file
Andrii Sherman
can't see and db folder under src
xamarot
xamarotOP2y ago
But shouldnt it still warn that the schema file can't be found?
Andrii Sherman
Yes, it should Will add warnings for that
Want results from more Discord servers?
Add your server