From 8a200c43aa7da34d78b5998aa261df4b7fa3b60a Mon Sep 17 00:00:00 2001 From: czup Date: Fri, 24 Jan 2020 22:57:27 +0100 Subject: [PATCH] =?UTF-8?q?Wyjazdy=20-=20softdelete,=20z=20potwierdzeniem?= =?UTF-8?q?=20u=C5=BCytkownika?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...28_165307_add_status_to_vehicles_table.php | 33 ------------------- ..._add_soft_deletes_to_operations_table.php} | 12 +++---- 2 files changed, 5 insertions(+), 40 deletions(-) delete mode 100644 database/migrations/x/2019_12_28_165307_add_status_to_vehicles_table.php rename database/migrations/x/{2019_11_07_230105_create_vehicles_table.php => 2020_01_22_004052_add_soft_deletes_to_operations_table.php} (67%) diff --git a/database/migrations/x/2019_12_28_165307_add_status_to_vehicles_table.php b/database/migrations/x/2019_12_28_165307_add_status_to_vehicles_table.php deleted file mode 100644 index 2c4b226..0000000 --- a/database/migrations/x/2019_12_28_165307_add_status_to_vehicles_table.php +++ /dev/null @@ -1,33 +0,0 @@ -integer('status')->default('0'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('vehicles', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/x/2019_11_07_230105_create_vehicles_table.php b/database/migrations/x/2020_01_22_004052_add_soft_deletes_to_operations_table.php similarity index 67% rename from database/migrations/x/2019_11_07_230105_create_vehicles_table.php rename to database/migrations/x/2020_01_22_004052_add_soft_deletes_to_operations_table.php index e373d0a..ed4c79f 100644 --- a/database/migrations/x/2019_11_07_230105_create_vehicles_table.php +++ b/database/migrations/x/2020_01_22_004052_add_soft_deletes_to_operations_table.php @@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; -class addSoftDeletes_to_vechiles extends Migration +class AddSoftDeletesToOperationsTable extends Migration { /** * Run the migrations. @@ -13,14 +13,10 @@ class addSoftDeletes_to_vechiles extends Migration */ public function up() { - public function up() - { - Schema::table('vehicles', function (Blueprint $table) { - // + Schema::table('operations', function (Blueprint $table) { $table->softDeletes(); }); } - } /** * Reverse the migrations. @@ -29,6 +25,8 @@ class addSoftDeletes_to_vechiles extends Migration */ public function down() { - Schema::dropIfExists('vehicles'); + Schema::table('operations', function (Blueprint $table) { + // + }); } }