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.
「更新」移行を作成するにはどうすればよいですか?