|
|
|
|
@ -11,6 +11,10 @@ return new class extends Migration
|
|
|
|
|
*/
|
|
|
|
|
public function up()
|
|
|
|
|
{
|
|
|
|
|
if (Schema::hasTable('jobs')) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Schema::create('jobs', function (Blueprint $table) {
|
|
|
|
|
$table->bigIncrements('id');
|
|
|
|
|
$table->string('queue')->index();
|
|
|
|
|
@ -27,6 +31,7 @@ return new class extends Migration
|
|
|
|
|
*/
|
|
|
|
|
public function down()
|
|
|
|
|
{
|
|
|
|
|
Schema::dropIfExists('jobs');
|
|
|
|
|
// The production database may already have this table from an older,
|
|
|
|
|
// untracked migration. Do not remove an existing queue table on rollback.
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|