我正在尝试将一些新列添加到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();
});
Run Code Online (Sandbox Code Playgroud)
在上面我说的avatar,first_name,last_name和nickname列.
我的问题是,当我跑php artisan migrate它时告诉我Nothing to migrate.
如何创建"更新"迁移?