我已经使用了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