laravel / ideas

Issues board used for Laravel internals discussions.
938 stars 31 forks source link

Make `php artisan migrate:reset` work with *-schema.dump #2657

Open hugotiburtino opened 3 years ago

hugotiburtino commented 3 years ago

php artisan migrate:reset doesn't work if you have used php artisan schema:dump --prune before.

$ php artisan migrate:reset
Migration not found: 2021_02_10_192215_create_socials_table
Migration not found: 2021_01_23_193356_create_connection_users_table
Migration not found: 2020_12_11_205954_create_notification_subjects_table
Migration not found: 2020_12_11_202723_create_support_form_answers_table
...

migrate:reset should be using down() function of the migration, since it doesn't exist anymore, it fails.