Skip to content

Commit 159575d

Browse files
authored
Merge pull request #1057 from reishou/enhancement_1056
[7.0] Use bigInteger column type for user_id columns
2 parents f75c95a + f117401 commit 159575d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

database/migrations/2016_06_01_000001_create_oauth_auth_codes_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function up()
1515
{
1616
Schema::create('oauth_auth_codes', function (Blueprint $table) {
1717
$table->string('id', 100)->primary();
18-
$table->integer('user_id');
18+
$table->bigInteger('user_id');
1919
$table->unsignedInteger('client_id');
2020
$table->text('scopes')->nullable();
2121
$table->boolean('revoked');

database/migrations/2016_06_01_000002_create_oauth_access_tokens_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function up()
1515
{
1616
Schema::create('oauth_access_tokens', function (Blueprint $table) {
1717
$table->string('id', 100)->primary();
18-
$table->integer('user_id')->index()->nullable();
18+
$table->bigInteger('user_id')->index()->nullable();
1919
$table->unsignedInteger('client_id');
2020
$table->string('name')->nullable();
2121
$table->text('scopes')->nullable();

database/migrations/2016_06_01_000004_create_oauth_clients_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function up()
1515
{
1616
Schema::create('oauth_clients', function (Blueprint $table) {
1717
$table->increments('id');
18-
$table->integer('user_id')->index()->nullable();
18+
$table->bigInteger('user_id')->index()->nullable();
1919
$table->string('name');
2020
$table->string('secret', 100);
2121
$table->text('redirect');

0 commit comments

Comments
 (0)