Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Running just one migration
  • I was wondering if there is a way to run just one migration independently from any previous pending migrations prior to its version number? If I have "029_create_new_totally_independent_table.php" can I run that without running "028_omg_what_were_we_thinking.php"? I can't seem to find anything in the docs in regards to this.
  • No, you can't. Migrations are meant to be run in sequence. So you have to design your migrations like that. If you added something you want to undo later, just do that, don't retroactively modify already run migrations. Obviously, you can do that when you haven't pushed to a staging or production environment, just roll back your development to a specific version, then modify the migrations after that, then run again.
  • Ah, I see. Thanks for clearing that up.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion