feat(colors): update admin website colors in migration and seeder, add migration test

This commit is contained in:
2026-10-01 13:57:59 -03:00
parent 35fd1277cb
commit 675d76fcb0
3 changed files with 76 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
return new class extends Migration
{
public function up(): void
{
DB::table('admin_website_types')
->where('codigo', 'shopit')
->update([
'secondary_color' => '#ADADAD',
'danger_color' => '#FF8888',
'success_color' => '#58B341',
'updated_at' => now(),
]);
}
public function down(): void
{
// Presentation settings are operational data; preserve them on rollback.
}
};

View File

@@ -49,6 +49,9 @@ class WebsiteTypeSeeder extends Seeder
'site_title' => 'ShopIt',
...self::PRESENTATION,
'primary_color' => '#2FD3AC',
'secondary_color' => '#ADADAD',
'danger_color' => '#FF8888',
'success_color' => '#58B341',
'site_logo' => $this->shopItLogo(),
'footer_logo' => $this->shopItFooterLogo(),
'favicon' => $this->shopItFavicon(),