I must be getting something wrong here regarding migrations...
I've created migration file for a table, run it once and all is fine. My problem starts when I want to make a change in the migration file/database table. This is my workflow:
Make a change in the migration file, for example remove a column in the schema
SSH into my Homestead server
cd to my project folder and runt 'php artisan migrate'
Then nothing happens, the command just returns "Nothing to migrate.". Why isn't it detecting the change I did in one of my migration files?
@phpMick Ok, but then that is what I am doing, amending the changes. That is I change for example the schema in the migration file for the table. But somehow 'php artisan migrate' doesn't seem to recognise the change. Do I need to change the filename of the migration file or something like that?
When a migration has been run, a record is created (in the migrations table), so that this migration does not get run again.
If you want the same migration to get executed again:
php artisan migrate:refresh
"The migrate:refresh command will roll back all of your migrations and then execute the migrate command. This command effectively re-creates your entire database:"