Added Scheduling
All checks were successful
Push image to registry / build-image (push) Successful in 4m20s
All checks were successful
Push image to registry / build-image (push) Successful in 4m20s
This commit is contained in:
@ -0,0 +1,32 @@
|
||||
<?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
|
||||
{
|
||||
Schema::create('queue_jobs', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('queue')->index();
|
||||
$table->longText('payload');
|
||||
$table->unsignedTinyInteger('attempts');
|
||||
$table->unsignedInteger('reserved_at')->nullable();
|
||||
$table->unsignedInteger('available_at');
|
||||
$table->unsignedInteger('created_at');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('queue_jobs');
|
||||
}
|
||||
};
|
@ -47,16 +47,16 @@ return new class extends Migration
|
||||
'name' => 'Hellcase',
|
||||
'description' => 'Prends le daily free et rentre dans les concours. Tourne toutes les 24h.',
|
||||
],
|
||||
[
|
||||
'id' => 3,
|
||||
'name' => 'Jeu gratuit Epic Games',
|
||||
'description' => 'Prends le jeu gratuit Epic games. Tourne tous les mois et tous les jours pendant la période de Noël.',
|
||||
],
|
||||
[
|
||||
'id' => 4,
|
||||
'name' => 'Envoyer un post instagram',
|
||||
'description' => "Envoye un post instagram avec l'image et le texte fourni. Tourne tous les jours.",
|
||||
],
|
||||
// [
|
||||
// 'id' => 3,
|
||||
// 'name' => 'Jeu gratuit Epic Games',
|
||||
// 'description' => 'Prends le jeu gratuit Epic games. Tourne tous les mois et tous les jours pendant la période de Noël.',
|
||||
// ],
|
||||
// [
|
||||
// 'id' => 4,
|
||||
// 'name' => 'Envoyer un post instagram',
|
||||
// 'description' => "Envoye un post instagram avec l'image et le texte fourni. Tourne tous les jours.",
|
||||
// ],
|
||||
];
|
||||
|
||||
foreach ($jobs as $job) {
|
||||
|
@ -67,37 +67,37 @@ return new class extends Migration
|
||||
"job_id" => 1,
|
||||
],
|
||||
|
||||
/* EPIC GAMES */
|
||||
[
|
||||
"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" => 3,
|
||||
],
|
||||
[
|
||||
"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" => 3,
|
||||
],
|
||||
// /* EPIC GAMES */
|
||||
// [
|
||||
// "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" => 3,
|
||||
// ],
|
||||
// [
|
||||
// "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" => 3,
|
||||
// ],
|
||||
|
||||
/* INSTAGRAM */
|
||||
[
|
||||
"key" => "instagram_account_email",
|
||||
"name" => "E-mail",
|
||||
"description" => "L'adresse e-mail utilisée pour votre compte Instagram.",
|
||||
"job_info_type_id" => 2,
|
||||
"job_id" => 4,
|
||||
],
|
||||
[
|
||||
"key" => "instagram_account_password",
|
||||
"name" => "Mot de passe",
|
||||
"description" => "Le mot de passe utilisé pour votre compte Instagram.",
|
||||
"job_info_type_id" => 3,
|
||||
"job_id" => 4,
|
||||
],
|
||||
// /* INSTAGRAM */
|
||||
// [
|
||||
// "key" => "instagram_account_email",
|
||||
// "name" => "E-mail",
|
||||
// "description" => "L'adresse e-mail utilisée pour votre compte Instagram.",
|
||||
// "job_info_type_id" => 2,
|
||||
// "job_id" => 4,
|
||||
// ],
|
||||
// [
|
||||
// "key" => "instagram_account_password",
|
||||
// "name" => "Mot de passe",
|
||||
// "description" => "Le mot de passe utilisé pour votre compte Instagram.",
|
||||
// "job_info_type_id" => 3,
|
||||
// "job_id" => 4,
|
||||
// ],
|
||||
];
|
||||
|
||||
foreach ($jobInfos as $jobInfo) {
|
||||
|
Reference in New Issue
Block a user