LoginSignup
1
1

More than 1 year has passed since last update.

php artisan migrate:refreshでMigration not found:になる

Posted at

環境

laravel6.20.37

エラー内容

$ php artisan migrate:refresh

Migration not found: 2021_11_28_041826_create_likess_table

原因

DBにmigrationが保存されているため

mysql> SELECT * FROM migrations;

+----+---------------------------------------+-------+
| id | migration                             | batch |
+----+---------------------------------------+-------+
| 18 | 2021_11_28_041826_create_likess_table |     1 |
+----+---------------------------------------+-------+
1 row in set (0.00 sec)

migration削除

mysql> delete from migrations where batch = 1;

参考

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1