Skip to content

Conversation

stelio
Copy link

@stelio stelio commented Sep 24, 2016

My attempt at completing the update function so that the usage is somewhat in line with the docs (https://db-migrate.readthedocs.io/en/latest/Getting%20Started/usage/#update-table-data-searchclauseid).

However usage looks more like:

exports.up = function(db, callback) {
  return db.update('users', { roles: ['guest'] }, { $set: {roles: ['admin']} }, {}, callback);
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant