phpmig icon indicating copy to clipboard operation
phpmig copied to clipboard

Re-ordering migrations

Open davehewy opened this issue 9 years ago • 1 comments

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.

davehewy avatar Jan 21 '16 14:01 davehewy

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

davedevelopment avatar Jan 22 '16 09:01 davedevelopment