The question "how to remove the migration in Laravel" all usually lead to a solution like php artisan migrate:refresh . But there will be no deletion of the migration: the actions described in the migration, which I want to delete, will still be executed. What interests me is that the actions described in the migration are not re-executed and in general the file with unnecessary migration no longer interferes.

  • It seems like database / migration to delete the migration description file. Is not it so? - Vasily Koshelev
  • @Vasily Koshelev, I am sorry, did not understand what you wanted to ask. What is database / migration? Way? Team? Further, the grammar did not understand. - Hokov Gleb
  • Path from the root of the project on Laravel - Vasily Koshelev
  • @Vasily Koshelev, you can delete the file, but the migration record will remain. Not very scary, just the console will mess up with the message Migration not found: With technically correct ways, nothing like this should be. - Side Gleb
  • one
    If you no longer need the migration at all, roll back with the help of migration: rollback for it, i.e. so that the down method of this migration is executed (there should be an inverse operation up if the creation was a table then deletion, if the column is created then deleting it), the migration record will be deleted from the database and the migration table and you will not have any more errors, well then you can delete the file with the migration of this one and run php artisan migrate - Orange_shadow

0