[Laravel] 移除不要的 Migrations

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# 移除上一次的migration
php artisan migrate:rollback

# 刪除不要的migration file
rm -f my_migration_file_name.php

# 重置 composer autoload
composer dump-autoload

# 最後再進去資料庫drop要捨棄的table
Licensed under CC BY-NC-SA 3.0 TW
comments powered by Disqus