我已經使用了php artisan migrate:make add_something_to_to_user_table --table=users
Laravel遷移:回滾添加和刪除表中的列
和編碼
Schema::table('users', function(Blueprint $table)
{
$table->string('description1');
$table->string('description2');
$table->string('description3');
});
,並增加了三個領域,並給php artisan migrate
和領域得到了保存到數據庫
還發現migration table
更新與行2014_11_05_145536_add_something_to_to_user_table
現在當我使用php artisan migrate:rollback
的2014_11_05_145536_add_something_to_to_user_table
行中的遷移表丟失,但列添加到用戶表保持不變
爲什麼它沒有在使用上表中的導致錯誤刪除場php artisan migrate
再次...
你有沒有正確設置了'向下()'在遷移類的方法? – Bogdan 2014-11-05 15:25:28