From 385e1ce4202b59eb4cac8f0c10b5ca33a01efb2c Mon Sep 17 00:00:00 2001 From: barunsoft Date: Tue, 30 Aug 2022 18:25:48 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AC=B8=EC=9D=98=ED=95=98=EA=B8=B0:=20SMS=20?= =?UTF-8?q?=EC=A0=84=EC=86=A1=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2022_08_30_174015_create_jobs_table.php | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 database/migrations/2022_08_30_174015_create_jobs_table.php diff --git a/database/migrations/2022_08_30_174015_create_jobs_table.php b/database/migrations/2022_08_30_174015_create_jobs_table.php new file mode 100644 index 0000000..4abd618 --- /dev/null +++ b/database/migrations/2022_08_30_174015_create_jobs_table.php @@ -0,0 +1,39 @@ +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'); + } +}