@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | { |
| 17 | 17 | Schema::create('quickbooks_tokens', function (Blueprint $table) { |
| 18 | 18 | $user_id_type = DB::getSchemaBuilder() |
| 19 | - ->getColumnType('users', 'id') === 'bigint' ? 'unsignedBigInteger' : 'unsignedInteger'; |
|
| 19 | + ->getColumnType('users', 'id') === 'bigint' ? 'unsignedBigInteger' : 'unsignedInteger'; |
|
| 20 | 20 | |
| 21 | 21 | $table->unsignedBigInteger('id'); |
| 22 | 22 | $table->{$user_id_type}('user_id'); |
@@ -29,9 +29,9 @@ discard block |
||
| 29 | 29 | $table->timestamps(); |
| 30 | 30 | |
| 31 | 31 | $table->foreign('user_id') |
| 32 | - ->references('id') |
|
| 33 | - ->on('users') |
|
| 34 | - ->onDelete('cascade'); |
|
| 32 | + ->references('id') |
|
| 33 | + ->on('users') |
|
| 34 | + ->onDelete('cascade'); |
|
| 35 | 35 | }); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function up() |
| 16 | 16 | { |
| 17 | - Schema::create('quickbooks_tokens', function (Blueprint $table) { |
|
| 17 | + Schema::create('quickbooks_tokens', function(Blueprint $table) { |
|
| 18 | 18 | $user_id_type = DB::getSchemaBuilder() |
| 19 | 19 | ->getColumnType('users', 'id') === 'bigint' ? 'unsignedBigInteger' : 'unsignedInteger'; |
| 20 | 20 | |