From 76ccef70c72bb036e191d375b98ff73bd011859a Mon Sep 17 00:00:00 2001 From: Imtyaz Ahmed <54882826+imtyaz-17@users.noreply.github.com> Date: Wed, 3 Jul 2024 12:14:06 +0600 Subject: [PATCH] T9 2021_11_09_090018_rename_name_in_companies_table.php --- .../task9/2021_11_09_090018_rename_name_in_companies_table.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/database/migrations/task9/2021_11_09_090018_rename_name_in_companies_table.php b/database/migrations/task9/2021_11_09_090018_rename_name_in_companies_table.php index f270c9e7..9aa691e1 100644 --- a/database/migrations/task9/2021_11_09_090018_rename_name_in_companies_table.php +++ b/database/migrations/task9/2021_11_09_090018_rename_name_in_companies_table.php @@ -16,6 +16,7 @@ public function up() // TASK: write the migration to rename the column "title" into "name" Schema::table('companies', function (Blueprint $table) { // Write code here + $table->renameColumn('title', 'name'); }); } @@ -28,6 +29,7 @@ public function down() { Schema::table('companies', function (Blueprint $table) { // + $table->renameColumn('name', 'title'); }); } }