percolatestudio / meteor-migrations

Simple migration system for Meteor
https://atmospherejs.com/percolate/migrations
MIT License
245 stars 58 forks source link

Option to hide migration message if nothing happens #4

Closed deepwell closed 8 years ago

deepwell commented 10 years ago

Really enjoying this plugin, it works really well for us.

I would like an option to tell this plugin to be silent unless it actually does a migration.

My goal is to hide these lines during development:

=> Meteor server restarted
I20140227-16:03:19.976(-8)? Not migrating, already at version 5
=> Meteor server restarted
I20140227-16:03:46.872(-8)? Not migrating, already at version 5
=> Meteor server restarted
I20140227-16:05:17.058(-8)? Not migrating, already at version 5
=> Meteor server restarted
I20140227-16:05:33.446(-8)? Not migrating, already at version 5
MaerF0x0 commented 10 years ago

+1

Also, we need to doc how to unlock: "Not migrating, control is locked meteor migration"

(i just deleted it from the mongo db)

zol commented 10 years ago

Thanks @deepwell and @MaerF0x0 I will consider the best way to pass that option. @deepwell out of curiosity, do you guys attempt to migrateTo('latest') on startup on dev & prod?

deepwell commented 10 years ago

Yes, we migrate to the "latest" version on startup on both dev & prod. I see no reason presently to do it differently.

zol commented 10 years ago

It’s a perfectly fine way to operate. I was just curious how you were using the package.

vNakamura commented 9 years ago

+1

zol commented 8 years ago

Added an option to prevent this logging in 0.9.7