From 5fae236ec0fbef4b061ba4229567ae2e3c7cf306 Mon Sep 17 00:00:00 2001 From: R Date: Tue, 22 Nov 2022 12:03:22 +0700 Subject: [PATCH] Fix Migration --- .../2022_11_22_083926_create_notification_tokens_table.php | 7 +++++++ .../migrations/2022_11_22_093749_create_api_logs_table.php | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/database/migrations/2022_11_22_083926_create_notification_tokens_table.php b/database/migrations/2022_11_22_083926_create_notification_tokens_table.php index 28d3c1a0..6b29d375 100644 --- a/database/migrations/2022_11_22_083926_create_notification_tokens_table.php +++ b/database/migrations/2022_11_22_083926_create_notification_tokens_table.php @@ -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'); }); } diff --git a/database/migrations/2022_11_22_093749_create_api_logs_table.php b/database/migrations/2022_11_22_093749_create_api_logs_table.php index c7333322..d35df6f5 100644 --- a/database/migrations/2022_11_22_093749_create_api_logs_table.php +++ b/database/migrations/2022_11_22_093749_create_api_logs_table.php @@ -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'); }); }