Skip to content

Commit 48390b9

Browse files
authored
modernize migration (#1402)
the change brings the migration up to date with current Laravel standards - anonymous class - `void` return type - removed superfluous docblocks
1 parent 7746529 commit 48390b9

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Diff for: database/migrations/2014_12_01_120000_create_phpdebugbar_storage_table.php

+4-7
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreatePhpdebugbarStorageTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* Run the migrations.
11-
*
12-
* @return void
1311
*/
14-
public function up()
12+
public function up(): void
1513
{
1614
Schema::create('phpdebugbar', function (Blueprint $table) {
1715
$table->string('id');
@@ -30,13 +28,12 @@ public function up()
3028
$table->index('meta_method');
3129
});
3230
}
31+
3332
/**
3433
* Reverse the migrations.
35-
*
36-
* @return void
3734
*/
3835
public function down()
3936
{
4037
Schema::drop('phpdebugbar');
4138
}
42-
}
39+
};

0 commit comments

Comments
 (0)