[5.8] use bigIncrements by default

All new migrations will be using bigIncrements
https://github.com/laravel/framework/pull/26472
This commit is contained in:
Ankur Kumar 2019-02-24 10:53:30 +05:30 committed by GitHub
parent 1d8add88f7
commit 426df7a0e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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