Skip to content

Commit

Permalink
adjust variant FK constraint drop (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
frasmage authored Jan 3, 2025
1 parent a74380d commit a1c7600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/2020_10_12_000000_add_variants_to_media.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function (Blueprint $table) {
// skip removing this column, the `whenTableDoesntHaveColumn`
// method should make this safe to play back
if (DB::getDriverName() !== 'sqlite') {
$table->dropConstrainedForeignId('original_media_id');
$table->dropConstrainedForeignIdFor(Media::class, 'original_media_id');
}
}
);
Expand Down

0 comments on commit a1c7600

Please sign in to comment.