Skip to content

Commit

Permalink
T9 2021_11_09_090018_rename_name_in_companies_table.php
Browse files Browse the repository at this point in the history
  • Loading branch information
imtyaz-17 authored Jul 3, 2024
1 parent e09be3d commit 76ccef7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
}

Expand All @@ -28,6 +29,7 @@ public function down()
{
Schema::table('companies', function (Blueprint $table) {
//
$table->renameColumn('name', 'title');
});
}
}

0 comments on commit 76ccef7

Please sign in to comment.