Include by default the DumpCommand for Database component
useful command to consolidate the whole migrations in one file ;)
@nunomaduro, what are your thoughts on this? 🤔 Personally I've never used this command so not sure.
there are one problem, if you pack the dump file in a phar and then you run the migration cmd, this cause an error because the migration cmd execute a (in mysql case) mysql PARAMS < phar://path/dump-file.dump.
So the problem is because the LARAVEL_LOAD_PATH use the path in the phar file and is not accessible from the external execution.
my first idea is create a copy of the dump file in a tmp file accessible externally but not sure how to address this.
the migration trace route:
Calculate the dump path https://github.com/laravel/framework/blob/master/src/Illuminate/Database/Console/Migrations/MigrateCommand.php#L175
execute the load method base on the current db engine https://github.com/laravel/framework/blob/master/src/Illuminate/Database/Console/Migrations/MigrateCommand.php#L145
end execute a shell command to import the db dump https://github.com/laravel/framework/blob/master/src/Illuminate/Database/Schema/MySqlSchemaState.php#L72
No plans for now.