feat(photos): add square medium variant for sharp grid thumbnails
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-- Drop medium bindings before narrowing the role constraint again.
|
||||
DELETE FROM photo_objects WHERE role = 'medium';
|
||||
ALTER TABLE photo_objects DROP CONSTRAINT IF EXISTS photo_objects_role_check;
|
||||
ALTER TABLE photo_objects ADD CONSTRAINT photo_objects_role_check
|
||||
CHECK (role IN ('original', 'thumb', 'preview'));
|
||||
Reference in New Issue
Block a user