diff --git a/app/Modules/VisaMasterPaymentOrder/Filament/Actions/PayVisaMasterPaymentAction.php b/app/Modules/VisaMasterPaymentOrder/Filament/Actions/PayVisaMasterPaymentAction.php index a979523..5769043 100644 --- a/app/Modules/VisaMasterPaymentOrder/Filament/Actions/PayVisaMasterPaymentAction.php +++ b/app/Modules/VisaMasterPaymentOrder/Filament/Actions/PayVisaMasterPaymentAction.php @@ -25,9 +25,7 @@ class PayVisaMasterPaymentAction ->schema(function () { $usd_to_tmt = floatval(CurrencyRate::where('currency_from', 'USD')->where('currency_to', 'TMT')->first('value')?->value); - $payment_warning_text = VisaMasterSettings::where('name', 'payment_warning_text')->first(); - - if (! $usd_to_tmt || ! $payment_warning_text) { + if (! $usd_to_tmt) { return []; } diff --git a/database/migrations/2025_11_07_012811_create_media_table.php b/database/migrations/2025_11_07_012811_create_media_table.php index 47a4be9..475cebf 100644 --- a/database/migrations/2025_11_07_012811_create_media_table.php +++ b/database/migrations/2025_11_07_012811_create_media_table.php @@ -8,25 +8,27 @@ return new class extends Migration { public function up(): void { - Schema::create('media', function (Blueprint $table) { - $table->id(); + if (! Schema::hasTable('media')) { + Schema::create('media', function (Blueprint $table) { + $table->id(); - $table->morphs('model'); - $table->uuid()->nullable()->unique(); - $table->string('collection_name'); - $table->string('name'); - $table->string('file_name'); - $table->string('mime_type')->nullable(); - $table->string('disk'); - $table->string('conversions_disk')->nullable(); - $table->unsignedBigInteger('size'); - $table->json('manipulations'); - $table->json('custom_properties'); - $table->json('generated_conversions'); - $table->json('responsive_images'); - $table->unsignedInteger('order_column')->nullable()->index(); + $table->morphs('model'); + $table->uuid()->nullable()->unique(); + $table->string('collection_name'); + $table->string('name'); + $table->string('file_name'); + $table->string('mime_type')->nullable(); + $table->string('disk'); + $table->string('conversions_disk')->nullable(); + $table->unsignedBigInteger('size'); + $table->json('manipulations'); + $table->json('custom_properties'); + $table->json('generated_conversions'); + $table->json('responsive_images'); + $table->unsignedInteger('order_column')->nullable()->index(); - $table->nullableTimestamps(); - }); + $table->nullableTimestamps(); + }); + } } };