Skip to content

Commit bd7e195

Browse files
committed
Add default payment provider
1 parent 73f18f2 commit bd7e195

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
use HiEvents\DomainObjects\Enums\PaymentProviders;
4+
use Illuminate\Database\Migrations\Migration;
5+
use Illuminate\Support\Facades\DB;
6+
7+
return new class extends Migration {
8+
public function up(): void
9+
{
10+
DB::table('event_settings')
11+
->whereNull('payment_provider')
12+
->update(['payment_provider' => [PaymentProviders::STRIPE->name]]);
13+
}
14+
15+
public function down(): void
16+
{
17+
// noop
18+
}
19+
};

0 commit comments

Comments
 (0)