Added migration, schdule and signing in
This commit is contained in:
44
database/migrations/2025_02_27_180246_add_epic_games_job.php
Normal file
44
database/migrations/2025_02_27_180246_add_epic_games_job.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
$jobId = 3;
|
||||
\App\Models\Job::forcecreate([
|
||||
'id' => $jobId,
|
||||
'name' => 'Jeu gratuit Epic Games',
|
||||
'description' => 'Prends le jeu gratuit Epic games. Tourne tous les jours.',
|
||||
]);
|
||||
\App\Models\JobInfo::forceCreate([
|
||||
"key" => "epicgames_account_email",
|
||||
"name" => "E-mail",
|
||||
"description" => "L'adresse e-mail utilisée pour votre compte Epic Games.",
|
||||
"job_info_type_id" => 2,
|
||||
"job_id" => $jobId,
|
||||
], );
|
||||
\App\Models\JobInfo::forceCreate([
|
||||
"key" => "epicgames_account_password",
|
||||
"name" => "Mot de passe",
|
||||
"description" => "Le mot de passe utilisé pour votre compte Epic Games.",
|
||||
"job_info_type_id" => 3,
|
||||
"job_id" => $jobId,
|
||||
]);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
\App\Models\Job::find(3)->delete();
|
||||
\App\Models\JobInfo::where('job_id', 3)->delete();
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user