diff --git a/database/migrations/2016_06_01_000001_create_oauth_auth_codes_table.php b/database/migrations/2016_06_01_000001_create_oauth_auth_codes_table.php index 8d12c4707..8fda427cc 100644 --- a/database/migrations/2016_06_01_000001_create_oauth_auth_codes_table.php +++ b/database/migrations/2016_06_01_000001_create_oauth_auth_codes_table.php @@ -15,7 +15,7 @@ public function up() { Schema::create('oauth_auth_codes', function (Blueprint $table) { $table->string('id', 100)->primary(); - $table->integer('user_id'); + $table->bigInteger('user_id'); $table->unsignedInteger('client_id'); $table->text('scopes')->nullable(); $table->boolean('revoked'); diff --git a/database/migrations/2016_06_01_000002_create_oauth_access_tokens_table.php b/database/migrations/2016_06_01_000002_create_oauth_access_tokens_table.php index bf529834b..a7156d4a0 100644 --- a/database/migrations/2016_06_01_000002_create_oauth_access_tokens_table.php +++ b/database/migrations/2016_06_01_000002_create_oauth_access_tokens_table.php @@ -15,7 +15,7 @@ public function up() { Schema::create('oauth_access_tokens', function (Blueprint $table) { $table->string('id', 100)->primary(); - $table->integer('user_id')->index()->nullable(); + $table->bigInteger('user_id')->index()->nullable(); $table->unsignedInteger('client_id'); $table->string('name')->nullable(); $table->text('scopes')->nullable(); diff --git a/database/migrations/2016_06_01_000004_create_oauth_clients_table.php b/database/migrations/2016_06_01_000004_create_oauth_clients_table.php index b411fdf04..ad55bee25 100644 --- a/database/migrations/2016_06_01_000004_create_oauth_clients_table.php +++ b/database/migrations/2016_06_01_000004_create_oauth_clients_table.php @@ -15,7 +15,7 @@ public function up() { Schema::create('oauth_clients', function (Blueprint $table) { $table->increments('id'); - $table->integer('user_id')->index()->nullable(); + $table->bigInteger('user_id')->index()->nullable(); $table->string('name'); $table->string('secret', 100); $table->text('redirect');