문의하기: SMS 전송기능 추가
parent
9e104f6a0f
commit
385e1ce420
@ -0,0 +1,39 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class CreateJobsTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('jobs', function (Blueprint $table) {
|
||||||
|
$table->unsignedInteger('id', true)->comment('고유번호');
|
||||||
|
$table->string('queue', 255)->comment('queue');
|
||||||
|
$table->longText('payload')->comment('payload');
|
||||||
|
$table->unsignedTinyInteger('attempts')->comment('시도횟수');
|
||||||
|
$table->unsignedInteger('reserved_at')->nullable()->comment('예약일');
|
||||||
|
$table->unsignedInteger('available_at')->nullable()->comment('가능일');
|
||||||
|
$table->unsignedInteger('created_at')->nullable()->comment('등록일');
|
||||||
|
|
||||||
|
// 인덱스
|
||||||
|
$table->index('queue', 'ik_tbl__jobs_queue');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::drop('jobs');
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue