Skip to content

Commit 95da684

Browse files
committed
Convert migrations to anonymous classes (#1834)
1 parent 2ebcc16 commit 95da684

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

database/migrations/2024_02_22_100000_create_opayo_tokens_table.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
use Illuminate\Support\Facades\Schema;
55
use Lunar\Base\Migration;
66

7-
class CreateOpayoTokensTable extends Migration
7+
return new class extends Migration
88
{
9-
public function up()
9+
public function up(): void
1010
{
1111
Schema::create($this->prefix.'opayo_tokens', function (Blueprint $table) {
1212
$table->id();
@@ -20,8 +20,8 @@ public function up()
2020
});
2121
}
2222

23-
public function down()
23+
public function down(): void
2424
{
2525
Schema::dropIfExists($this->prefix.'opayo_tokens');
2626
}
27-
}
27+
};

0 commit comments

Comments
 (0)