File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema;
4
4
use Illuminate\Database\Schema\Blueprint;
5
5
use Illuminate\Database\Migrations\Migration;
6
6
7
- class CreatePushSubscriptionsTable extends Migration
7
+ return new class extends Migration
8
8
{
9
9
/**
10
10
* Run the migrations.
@@ -33,4 +33,4 @@ class CreatePushSubscriptionsTable extends Migration
33
33
{
34
34
Schema::connection(config('webpush.database_connection'))->dropIfExists(config('webpush.table_name'));
35
35
}
36
- }
36
+ };
Original file line number Diff line number Diff line change @@ -53,9 +53,8 @@ protected function setUpDatabase()
53
53
$ table ->string ('email ' );
54
54
});
55
55
56
- include_once __DIR__ .'/../migrations/create_push_subscriptions_table.php.stub ' ;
57
-
58
- (new \CreatePushSubscriptionsTable )->up ();
56
+ $ migration = require __DIR__ .'/../migrations/create_push_subscriptions_table.php.stub ' ;
57
+ $ migration ->up ();
59
58
60
59
$ this ->createUser (['email ' => 'test@user.com ' ]);
61
60
}
You can’t perform that action at this time.
0 commit comments