Skip to content

Commit

Permalink
Merge pull request #13 from pboivin/update-drop-column-migration
Browse files Browse the repository at this point in the history
Combine dropColumn calls in up migration
  • Loading branch information
pauldwight authored Feb 8, 2022
2 parents 437e9b5 + 44aa8c3 commit 8583a7a
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ class RemoveNonTranslatedColumnsOnMetadataTable extends Migration
public function up()
{
Schema::table('metadata', function(Blueprint $table){
$table->dropColumn('title');
$table->dropColumn('description');
$table->dropColumn('og_title');
$table->dropColumn('og_description');
$table->dropColumn('canonical_url');
$table->dropColumn(['title', 'description', 'og_title', 'og_description', 'canonical_url']);
});
}

Expand Down

0 comments on commit 8583a7a

Please sign in to comment.