Skip to content

Commit

Permalink
Update 2021_11_09_090018_rename_name_in_companies_table.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OhmygoodR authored May 11, 2024
1 parent ae99729 commit 44b5fcd
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 44b5fcd

Please sign in to comment.