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

Re-ordering migrations #96

Open
davehewy opened this issue Jan 21, 2016 · 1 comment
Open

Re-ordering migrations #96

davehewy opened this issue Jan 21, 2016 · 1 comment

Comments

@davehewy
Copy link
Contributor

It would be nice to have the ability to re-order migrations.

Sometimes during dev you might find that what made sense, now doesn't make sense, however something you have already done depends on a changed new piece of code.

I know I could remove, delete, or just bodge the mysql table collecting info around migrations but be nice if there was an up and down cmd at the command line or something.

@davedevelopment
Copy link
Owner

Do you mean change the order with regards to the name of the files, so that when they're run somewhere else they will be in a particular order?

So this:

> ls migrations
20151022170753_AddCatsTable.php
20151130143117_AddAnimalsTable.php

becomes:

> ls migrations
20151130143117_AddCatsTable.php
20151022170753_AddAnimalsTable.php

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

No branches or pull requests

2 participants