48
27

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Laravel】migrate:refresh と migrate:fresh の違い

Last updated at Posted at 2020-12-11

migrate:refresh

down() を実行してから up() を実行する。なので down() の内容によっては up() の処理に影響を与える可能性がある。1

migrate:fresh

全テーブルをドロップしてから up() を実行する。 down() は実行されない。

参考

  1. ゴミデータを残してしまったり等

48
27
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
48
27

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?