wip
This commit is contained in:
@@ -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 [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user