awapps / mongration

MongoDB migration framework
MIT License
85 stars 24 forks source link

Disable checksum #40

Open haydarai opened 6 years ago

haydarai commented 6 years ago

Is there any way to disable checksum check? It's a great feature for sure, but sometimes developers are reckless in creating migration files and hence we probably need to change it later otherwise it won't run for new developers (sometimes we forget to handle what if the collection doesn't exist yet).

wmartins commented 6 years ago

Hey @haydarai, it's currently not possible to disable checksums. mongration was created and designed to guarantee some level of "consistency" when migrating the database. One way of making it "unreliable" is disabling checksums.

Now, thinking about it, maybe it's not that bad to do so, as you really want/need to do that. Looking forward to hear what @eberhara thinks about it.

Anyway, I think PR's are welcome to this feature.