From f117401750a0d2ddb545c0b54d89e18085f7aa48 Mon Sep 17 00:00:00 2001 From: Reishou <reishou90@gmail.com> Date: Mon, 5 Aug 2019 20:49:23 +0700 Subject: [PATCH] Use bigInteger column type for user_id columns --- .../2016_06_01_000001_create_oauth_auth_codes_table.php | 2 +- .../2016_06_01_000002_create_oauth_access_tokens_table.php | 2 +- .../migrations/2016_06_01_000004_create_oauth_clients_table.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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');