feat: add display_cart_item_images feature to tenants and update related resources
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
private const DESFILE_TENANT_CODE = 'desfile_pura_tendencia';
|
||||
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('tenants', function (Blueprint $table): void {
|
||||
$table->boolean('display_cart_item_images')->default(true)->after('cart_editing_enabled');
|
||||
});
|
||||
|
||||
DB::table('tenants')
|
||||
->where('codigo', self::DESFILE_TENANT_CODE)
|
||||
->update(['display_cart_item_images' => false]);
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('tenants', function (Blueprint $table): void {
|
||||
$table->dropColumn('display_cart_item_images');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -43,6 +43,7 @@ class DesfilePuraTendenciaSeeder extends Seeder
|
||||
$tenant->update([
|
||||
'client_id' => $client->id,
|
||||
'cart_editing_enabled' => false,
|
||||
'display_cart_item_images' => false,
|
||||
]);
|
||||
|
||||
return;
|
||||
@@ -76,6 +77,7 @@ class DesfilePuraTendenciaSeeder extends Seeder
|
||||
'display_seach_bar' => false,
|
||||
'display_cart' => true,
|
||||
'cart_editing_enabled' => false,
|
||||
'display_cart_item_images' => false,
|
||||
'scanner_category_validation_enabled' => false,
|
||||
'website_type_code' => 'onticket',
|
||||
'header_logo' => $this->uploadedImage(
|
||||
|
||||
Reference in New Issue
Block a user