This commit is contained in:
2025-11-16 16:31:16 +05:00
parent c1b3a58c3a
commit 5a37d56cfb
2 changed files with 21 additions and 21 deletions

View File

@@ -25,9 +25,7 @@ class PayVisaMasterPaymentAction
->schema(function () { ->schema(function () {
$usd_to_tmt = floatval(CurrencyRate::where('currency_from', 'USD')->where('currency_to', 'TMT')->first('value')?->value); $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) {
if (! $usd_to_tmt || ! $payment_warning_text) {
return []; return [];
} }

View File

@@ -8,25 +8,27 @@ return new class extends Migration
{ {
public function up(): void public function up(): void
{ {
Schema::create('media', function (Blueprint $table) { if (! Schema::hasTable('media')) {
$table->id(); Schema::create('media', function (Blueprint $table) {
$table->id();
$table->morphs('model'); $table->morphs('model');
$table->uuid()->nullable()->unique(); $table->uuid()->nullable()->unique();
$table->string('collection_name'); $table->string('collection_name');
$table->string('name'); $table->string('name');
$table->string('file_name'); $table->string('file_name');
$table->string('mime_type')->nullable(); $table->string('mime_type')->nullable();
$table->string('disk'); $table->string('disk');
$table->string('conversions_disk')->nullable(); $table->string('conversions_disk')->nullable();
$table->unsignedBigInteger('size'); $table->unsignedBigInteger('size');
$table->json('manipulations'); $table->json('manipulations');
$table->json('custom_properties'); $table->json('custom_properties');
$table->json('generated_conversions'); $table->json('generated_conversions');
$table->json('responsive_images'); $table->json('responsive_images');
$table->unsignedInteger('order_column')->nullable()->index(); $table->unsignedInteger('order_column')->nullable()->index();
$table->nullableTimestamps(); $table->nullableTimestamps();
}); });
}
} }
}; };