feat(colors): update admin website colors in migration and seeder, add migration test
This commit is contained in:
@@ -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.
|
||||
}
|
||||
};
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user