Fix Migration

This commit is contained in:
R
2022-11-22 12:03:22 +07:00
parent b6d5330838
commit 5fae236ec0
2 changed files with 7 additions and 2 deletions

View File

@@ -20,7 +20,14 @@ return new class extends Migration
$table->string('type');
$table->string('token');
$table->string('status');
$table->timestamps();
$table->softDeletes();
$table->unsignedBigInteger('created_by')->nullable()->index();
$table->unsignedBigInteger('updated_by')->nullable()->index();
$table->unsignedBigInteger('deleted_by')->nullable()->index();
$table->index('token');
});
}

View File

@@ -26,8 +26,6 @@ return new class extends Migration
$table->unsignedBigInteger('created_by')->nullable()->index();
$table->unsignedBigInteger('updated_by')->nullable()->index();
$table->unsignedBigInteger('deleted_by')->nullable()->index();
$table->index('token');
});
}