Merge branch 'le-gaulois-2024' into trunk

This commit is contained in:
Vincent BRIDIER 2024-07-16 16:28:04 +02:00
commit 8cfb542bb7
No known key found for this signature in database
GPG key ID: 8571BFA20420D512
3 changed files with 0 additions and 61 deletions

View file

@ -1,48 +0,0 @@
<?php
use App\Enums\Settings\SettingsType;
use App\Models\GeneralSetting;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
GeneralSetting::query()->where('type', SettingsType::products)->update([
'value' => json_encode(GeneralSetting::getJsonLayout(SettingsType::products)),
'created_at' => now(),
'updated_at' => now()
]);
GeneralSetting::query()->where('type', SettingsType::recipes)->update([
'value' => json_encode(GeneralSetting::getJsonLayout(SettingsType::recipes)),
'created_at' => now(),
'updated_at' => now()
]);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
GeneralSetting::query()->where('type', SettingsType::products)->update([
'value' => json_encode(collect(GeneralSetting::getJsonLayout(SettingsType::products))
->only(['subtitle', 'test'])),
'created_at' => now(),
'updated_at' => now()
]);
GeneralSetting::query()->where('type', SettingsType::recipes)->update([
'value' => json_encode(collect(GeneralSetting::getJsonLayout(SettingsType::recipes))
->only(['subtitle', 'test'])),
'created_at' => now(),
'updated_at' => now()
]);
}
};

View file

@ -1,9 +1,7 @@
<?php
use Database\Seeders\Development\HistoricalMilestoneSeeder;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
@ -26,10 +24,6 @@ return new class extends Migration
$table->boolean('published')->comment('Historical milestone publish status.');
$table->timestamps();
});
Artisan::call('db:seed', [
'--class' => HistoricalMilestoneSeeder::class,
]);
}
/**

View file

@ -1,9 +1,7 @@
<?php
use Database\Seeders\Development\OfferSeeder;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
@ -28,11 +26,6 @@ return new class extends Migration
$table->boolean('published')->comment('Offer publish status.');
$table->timestamps();
});
// Call seeder.
Artisan::call('db:seed', [
'--class' => OfferSeeder::class,
]);
}
/**