diff --git a/migrations/2020_10_12_000000_add_variants_to_media.php b/migrations/2020_10_12_000000_add_variants_to_media.php index 0023258..1f10479 100644 --- a/migrations/2020_10_12_000000_add_variants_to_media.php +++ b/migrations/2020_10_12_000000_add_variants_to_media.php @@ -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'); } } );