Laravel Vapor - New table and command to handle delayed jobs

This commit is contained in:
Dillon Ngo
2024-09-19 04:49:31 +08:00
parent 2b6727cadc
commit c0ff60c5e7
5 changed files with 142 additions and 0 deletions
@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateJobsDelayedTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('jobs_delayed', function (Blueprint $table) {
$table->id();
$table->string('job_class');
$table->json('parameters');
$table->timestamp('execute_at');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('jobs_delayed');
}
}