Merge branch 'le-gaulois-2024' into trunk
This commit is contained in:
commit
8cfb542bb7
3 changed files with 0 additions and 61 deletions
|
|
@ -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()
|
||||
]);
|
||||
}
|
||||
};
|
||||
|
|
@ -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,
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue