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'); + } +}