我正在尝试在 Laravel 5 安装附带的通用“用户”表中添加一些新列。
但是,我创建了一个执行 Schema::create 的新迁移,如下所示:
Schema::create('users', function(Blueprint $table)
{
$table->increments('id');
$table->string('username');
$table->string('email')->unique();
$table->string('password', 60);
$table->string('avatar');
$table->string('first_name');
$table->string('last_name');
$table->string('nickname');
$table->rememberToken();
$table->timestamps();
});
在上面我添加了avatar
、first_name
和last_name
列nickname
。
我的问题是当我跑步时php artisan migrate
它告诉我Nothing to migrate.
如何创建“更新”迁移?