@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use Illuminate\Support\Facades\Schema; |
|
| 4 | -use Illuminate\Database\Schema\Blueprint; |
|
| 5 | 3 | use Illuminate\Database\Migrations\Migration; |
| 4 | +use Illuminate\Database\Schema\Blueprint; |
|
| 5 | +use Illuminate\Support\Facades\Schema; |
|
| 6 | 6 | |
| 7 | 7 | class CreateTokensTable extends Migration |
| 8 | 8 | { |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('queue', function (Blueprint $table) { |
|
| 16 | + Schema::create('queue', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->string('queue'); |
| 19 | 19 | $table->longText('payload'); |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | $table->unsignedInteger('reserved_at')->nullable(); |
| 22 | 22 | $table->unsignedInteger('available_at'); |
| 23 | 23 | $table->unsignedInteger('created_at'); |
| 24 | - $table->index(['queue', 'reserved_at']); |
|
| 24 | + $table->index([ 'queue', 'reserved_at' ]); |
|
| 25 | 25 | }); |
| 26 | 26 | } |
| 27 | 27 | |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use Illuminate\Support\Facades\Schema; |
|
| 4 | -use Illuminate\Database\Schema\Blueprint; |
|
| 5 | 3 | use Illuminate\Database\Migrations\Migration; |
| 4 | +use Illuminate\Database\Schema\Blueprint; |
|
| 5 | +use Illuminate\Support\Facades\Schema; |
|
| 6 | 6 | |
| 7 | 7 | class CreateTokensTable extends Migration |
| 8 | 8 | { |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('failed_queue', function (Blueprint $table) { |
|
| 16 | + Schema::create('failed_queue', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->text('connection'); |
| 19 | 19 | $table->text('queue'); |