diff --git a/warehouse/migrations/versions/bf26c4ca926e_primary_item_photo.py b/warehouse/migrations/versions/bf26c4ca926e_primary_item_photo.py
index 95c6e509e1943f0d7a0348b47f7d596102598637..2e5645083699b112cdd901935631ce467e7b574f 100644
--- a/warehouse/migrations/versions/bf26c4ca926e_primary_item_photo.py
+++ b/warehouse/migrations/versions/bf26c4ca926e_primary_item_photo.py
@@ -36,7 +36,6 @@ def upgrade():
 				.where(item_photo.c.item_id == item.c.id)
 				.order_by(item_photo.c.photo_id)
 				.limit(1)
-				.scalar_subquery()
 		)
 	)