Files
sub2api/backend/migrations/158_enable_grok_media_generation_groups.sql
T

8 lines
364 B
SQL
Raw Normal View History

-- PR 3593 added Grok media routes for image generation, image edits, and video generation.
-- Existing Grok groups were created before the image-generation gate knew about
-- the Grok platform, so backfill them onto the same generation capability gate.
UPDATE groups
SET allow_image_generation = true
WHERE platform = 'grok'
AND allow_image_generation = false;