feat(storefront): configure checkout summary type

This commit is contained in:
2026-09-21 10:59:28 -03:00
parent 14c81fec1b
commit 6d077647ba
7 changed files with 64 additions and 8 deletions

View File

@@ -0,0 +1,27 @@
<?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
{
public function up(): void
{
Schema::table('storefront_website_types', function (Blueprint $table): void {
$table->string('checkout_summary_type')->default('default')->after('header_type');
});
DB::table('storefront_website_types')
->where('codigo', 'onticket_multi_event')
->update(['checkout_summary_type' => 'event']);
}
public function down(): void
{
Schema::table('storefront_website_types', function (Blueprint $table): void {
$table->dropColumn('checkout_summary_type');
});
}
};