_meta Directory purpose
I'm having trouble with understanding what is
_meta
directory and how I should approach it.
What is it's purpose?
Should I check it into the repository?
What is the purpose of snapshots?
Is there any way to rollback a migration?
Documentation of drizzle kit is lacking in this aspect a bit. Anyone could help?2 Replies
@Fedox Based on my understanding, this is something that is being worked on right now. It has been on the roadmap for drizzle v1 and it's one of the last remaining items. See https://github.com/drizzle-team/drizzle-orm/discussions/2832
supposedly the new migration system will add down migrations and there will be less conflicts between migrations from different PRs. Sounds exciting.
but, right now, to answer your questions:
* Yes, check it into the repository.
* If you want to undo a migration, you'd have to create a new reverse migration
if, however, you want to undo a migration just because you're iterating on the schema locally, then you should probably try
push
insteadThx