I used this command, but it does not remove specific migrations or drop tables from the database in Laravel 9. Has it possible to drop specific migrations? When I run this command, I get this message in the terminal.
INFO Rolling back migrations.
2022_10_13_172130_create_points_table .................................................................................. Migration not found
Here points are the latest migration. And I do not want to drop the latest migration by using step=1
@Shivamyadav php artisan migrate:rollback --path=/database/migrations/2022_10_11_135154_add_destination_to_table_flights.php
not working same error migration not found
@Sinnbeck Sir actually I use the same command before, and it works, but now it's not working. I have a useless table, that's why I want to drop it from database. Can you just confirm whether Laravel 9 has discontinued this option or not?
@bilaliqbal049 So the migrations has a down() for removing the table? Personally I would just create a new migration that removes the table. I think its broken due to the change to anonymous classes. I doubt anyone uses it so therefor no one noticed. If you change 2022_10_13_172130_create_points_table to a regular class, I bet it works. The command you ran is correct
@Sinnbeck I pick an old project and run the same command and its works, that project was in 8.0, and it's not working in 9.19 if you have any idea whether Laravel 9 discontinue this command or not