Skip to main content
Category:

Question:

Is there a way how I can change the migrations order without remaking them all?

Solution:

If you want to change the order of DB migrations, just rename the file's timestamp, like:

from 2020_08_04_070443_create_products_table.php to 2020_07_04_070443_create_products_table.php (changed from 2020_08_04 to 2020_07_04).

Then run the migrations again.

Riadh Rahmi

Senior Web Developer PHP/Drupal & Laravel

I am a senior web developer, I have experience in planning and developing large scale dynamic web solutions especially in Drupal & Laravel.

Web Posts

Search

Page Facebook