Thanks.
I found out that it has to to with my composer.json-file that has these lines:
"scripts": {
"post-autoload-dump": [
"Illuminate\Foundation\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi",
"php artisan migrate --force",
"php artisan db:seed --force",
"php artisan queue:restart"
],
...
If I remove the line "php artisan migrate --force" the auto-migration does not happen.
What's strange is that if change the line to "php artisan aisghjsagdjasdgalsdg" (that command does not exist) no error is given after running artisan make:migration ....
When I run composer install however, the executions fails naming that this command does not exist.
I added another line into the post-autoload-dump-array: touch test.txt
And yes, a test.txt-file was created after making a new migration.
That means the make:migration-command is running those scripts in the composer-file and ignores any error that might occur.
We do not want to remove them due to development and deployment purposes.
How can I prevent make:migration from running these commands?