Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added migrate command for mongodb migrations #193

Merged
merged 7 commits into from
Jan 29, 2014

Conversation

tvollstaedt
Copy link
Contributor

This adds a console command to create migration files for mongoyii as the usual yiic migrate does. I needed this to spread the EMongoAuthManager updates across all my application instances, but I implemented all writing mongodb commands so you can use it for any migration you may want to do on your databases. I used the CMigrateCommand as base and extended all database-related methods, so they work exactly the same.

This also covers the issue #146 as one now can do both, having application logic as well as migration files to handle structural changes.

@Sammaye
Copy link
Owner

Sammaye commented Jan 29, 2014

What's changed in the readme? It just shows that it has all been changed.

Sammaye added a commit that referenced this pull request Jan 29, 2014
Added migrate command for mongodb migrations
@Sammaye Sammaye merged commit 2d0b8fa into Sammaye:master Jan 29, 2014
@Sammaye
Copy link
Owner

Sammaye commented Jan 29, 2014

Ok was able to diff it, merging.

Thanks for the fix!

@tvollstaedt tvollstaedt deleted the mongomigration branch January 29, 2014 20:52
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.

2 participants