percolatestudio / meteor-migrations

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

How do I add multiple migrations in one version? #67

Closed nkurothe closed 7 years ago

nkurothe commented 7 years ago

I want to be able to add multiple migrations in one version, below is a sample

Migrations.add({ version: 1, name: 'Adds pants to some people in the db.', up: function() {//code to migrate collection 1 up to version 1} down: function() {//code to migrate down to version 0} });

Migrations.add({ version: 1, name: 'Adds pants to some people in the db.', up: function() {//code to migrate collection 2 up to version 1} down: function() {//code to migrate down to version 0} });

How can I do this? A scenario for this would, we can have multiple people writing migrations, so would want to separate their individual migrations and run them in some order.

nkurothe commented 7 years ago

Duplicates #47