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