From 4ce0867dc83dd196c49726314513250b895618a7 Mon Sep 17 00:00:00 2001 From: Nikola Cirkovic Date: Mon, 30 May 2022 20:43:47 +0200 Subject: [PATCH] INA-5 | Drop scheduled jobs | create missing fields in schedulers table --- ...2_05_18_162443_create_schedulers_table.php | 3 ++ ...05_30_181109_drop_scheduled_jobs_table.php | 28 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 database/migrations/2022_05_30_181109_drop_scheduled_jobs_table.php diff --git a/database/migrations/2022_05_18_162443_create_schedulers_table.php b/database/migrations/2022_05_18_162443_create_schedulers_table.php index 72e3fe743a0c..ff26d617b275 100644 --- a/database/migrations/2022_05_18_162443_create_schedulers_table.php +++ b/database/migrations/2022_05_18_162443_create_schedulers_table.php @@ -30,6 +30,9 @@ class CreateSchedulersTable extends Migration $table->timestamp('start_from'); $table->timestamp('scheduled_run'); $table->foreignIdFor(\App\Models\Company::class); + $table->string('action_name')->index(); + $table->string('action_class'); + $table->json('parameters')->nullable(); $table->timestamps(); $table->softDeletes(); }); diff --git a/database/migrations/2022_05_30_181109_drop_scheduled_jobs_table.php b/database/migrations/2022_05_30_181109_drop_scheduled_jobs_table.php new file mode 100644 index 000000000000..303620aee7a1 --- /dev/null +++ b/database/migrations/2022_05_30_181109_drop_scheduled_jobs_table.php @@ -0,0 +1,28 @@ +