Skip to content

Commit

Permalink
Update 2020_10_12_000000_add_variants_to_media.php (#372)
Browse files Browse the repository at this point in the history
The `$table->dropConstrainedForeignId('original_media_id')` indicates that the given column and foreign key should be dropped.
  • Loading branch information
solomon-ochepa authored Jan 3, 2025
1 parent 387b2f7 commit a74380d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions migrations/2020_10_12_000000_add_variants_to_media.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ function (Blueprint $table) {
// skip removing this column, the `whenTableDoesntHaveColumn`
// method should make this safe to play back
if (DB::getDriverName() !== 'sqlite') {
$table->dropForeign('original_media_id');
$table->dropColumn('original_media_id');
$table->dropConstrainedForeignId('original_media_id');
}
}
);
Expand Down

0 comments on commit a74380d

Please sign in to comment.