From cf5440af7187f8d8a3d4d3c0f68f018d70c01d42 Mon Sep 17 00:00:00 2001 From: Dedan Date: Fri, 27 Sep 2024 10:06:20 +0300 Subject: [PATCH] Changes to files: database/migrations/2024_08_03_081524_create_fleet_fleet_table.php database/migrations/2024_09_03_133114_add_deleted_at_to_fleet_fleet_table.php --- ..._08_03_081524_create_fleet_fleet_table.php | 5 ++++ ...14_add_deleted_at_to_fleet_fleet_table.php | 28 ------------------- 2 files changed, 5 insertions(+), 28 deletions(-) delete mode 100644 database/migrations/2024_09_03_133114_add_deleted_at_to_fleet_fleet_table.php diff --git a/database/migrations/2024_08_03_081524_create_fleet_fleet_table.php b/database/migrations/2024_08_03_081524_create_fleet_fleet_table.php index d5e27a7..672b028 100644 --- a/database/migrations/2024_08_03_081524_create_fleet_fleet_table.php +++ b/database/migrations/2024_08_03_081524_create_fleet_fleet_table.php @@ -18,7 +18,12 @@ public function up(): void $table->string('description')->nullable(); $table->tinyInteger('published')->default(0); + $table->foreignId('created_by')->nullable()->constrained('users')->onDelete('set null'); + $table->foreignId('updated_by')->nullable()->constrained('users')->onDelete('set null'); + $table->foreignId('deleted_by')->nullable()->constrained('users')->onDelete('set null'); + $table->timestamps(); + $table->softDeletes(); }); } diff --git a/database/migrations/2024_09_03_133114_add_deleted_at_to_fleet_fleet_table.php b/database/migrations/2024_09_03_133114_add_deleted_at_to_fleet_fleet_table.php deleted file mode 100644 index 3325d7e..0000000 --- a/database/migrations/2024_09_03_133114_add_deleted_at_to_fleet_fleet_table.php +++ /dev/null @@ -1,28 +0,0 @@ -softDeletes(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::table('fleet_fleet', function (Blueprint $table) { - $table->dropColumn('deleted_at'); - }); - } -};