bookwiz.io / supabase / migrations / 036_remove_size_constraint.sql
036_remove_size_constraint.sql
Raw
-- Remove size constraint to support flexible image dimensions
-- This allows support for different AI image models with varying size formats
-- GPT Image 1, DALL-E 3, and future models may have different size requirements

ALTER TABLE generated_images 
DROP CONSTRAINT generated_images_size_check;

-- Update comment to reflect the change
COMMENT ON COLUMN generated_images.size IS 'Image dimensions in WIDTHxHEIGHT format (e.g., 1024x1024, 1024x1536). No restrictions to support various AI models.';