Implement new primary key syntax (#5147)

This commit is contained in:
Dries Vints 2019-11-01 13:53:14 +01:00 committed by Taylor Otwell
parent b659069bce
commit 2e2be97c26
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class CreateUsersTable extends Migration
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->bigIncrements('id');
$table->id();
$table->string('name');
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();

View File

@ -14,7 +14,7 @@ class CreateFailedJobsTable extends Migration
public function up()
{
Schema::create('failed_jobs', function (Blueprint $table) {
$table->bigIncrements('id');
$table->id();
$table->text('connection');
$table->text('queue');
$table->longText('payload');