1

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"

How can I delete this:

migrationfile "2018_06_30_113500_create_comments_table" ?

Maik Lowrey
  • 15,957
  • 6
  • 40
  • 79

1 Answers1

4

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'
Maik Lowrey
  • 15,957
  • 6
  • 40
  • 79
MaartenDev
  • 5,631
  • 5
  • 21
  • 33