Answer the question
In order to leave comments, you need to log in
How to roll migrations on prod?
A couple of new files with migrations in the docker on my machine, they have a simple addcolumn, then I push these files to prod, I try to roll migrations from the sale, I write nothing to migrate
, I try this: php artisan migrate --path=/database/migrations/2018_12_16_143754_add_image_tablet_to_sections_table. php
Same thing, nothing to migrate.
The admin forbids adding files to the prod, says hooks fly off.
Of course, you can manually add them to the migrations table and set batch, but it’s also such an option.
How to do it right?
Answer the question
In order to leave comments, you need to log in
php artisan migrate --path="/database/migrations"
And in the database on the sale, you can still see the latest migrations in the migrations table. The fastest way is simply that the command is not executed from the console on the prod server, but locally, so this message is written, or on the prod in the database config it is not registered with the ip mysql prod version
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question