Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How can i delete a migration that is not found?

I have this problem

when i run php artisan migrate:refresh:

Rolling back: 2014_10_12_100000_create_password_resets_table
Rolled back:  2014_10_12_100000_create_password_resets_table (1.71ms)
Rolling back: 2014_10_12_000000_create_users_table
Rolled back:  2014_10_12_000000_create_users_table (1.76ms)
Migration not found: 2018_06_30_113500_create_comments_table <---- THIS ONE!!!
Migrating: 2014_10_12_000000_create_users_table
Migrated:  2014_10_12_000000_create_users_table (8.18ms)

I had already tried:

php artisan migrate:refresh

php artisan migrate:rollback --step=1 until I got: "Migration not found: 2018_06_30_113500_create_comments_table"

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

How can I delete this:

migrationfile "2018_06_30_113500_create_comments_table" ?

>Solution :

This can be fixed by manually removing the 2018_06_30_113500_create_comments_table record in the migrations table. You could use the following command:

DELETE FROM migrations where name = '2018_06_30_113500_create_comments_table'
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading