modernize migration (#1402)

the change brings the migration up to date with current Laravel standards

- anonymous class
- `void` return type
- removed superfluous docblocks
This commit is contained in:
Andrew Brown 2024-02-09 11:00:03 -06:00 committed by GitHub
parent 7746529baa
commit 48390b99a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 7 deletions

View File

@ -4,14 +4,12 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePhpdebugbarStorageTable extends Migration
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
public function up(): void
{
Schema::create('phpdebugbar', function (Blueprint $table) {
$table->string('id');
@ -30,13 +28,12 @@ class CreatePhpdebugbarStorageTable extends Migration
$table->index('meta_method');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('phpdebugbar');
}
}
};