delete ocean nomads specific data seeds (#354)

This commit is contained in:
Ulf Gebhardt 2025-09-03 17:14:53 +01:00 committed by GitHub
parent 9812799868
commit 6793a33fac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 32 deletions

View File

@ -1,3 +0,0 @@
UPDATE public.directus_flows
SET status = 'active'
WHERE name ~ '(Ocean Nomads: Create Nomad|Ocean Nomads: Update Nomad|Ocean Nomads: Delete Nomad|Ocean Nomads: Create Location|Ocean Nomads: Create Event)';

View File

@ -1,29 +0,0 @@
-- Layer: Event (static: 5d12f356-349a-4463-a57c-5fc54eede6ba)
-- Flow: Ocean Nomads Create Event
UPDATE public.directus_operations
SET options = jsonb_set(options::jsonb,'{payload,layer}', to_jsonb((SELECT id FROM layers WHERE name = 'Events')), true)
WHERE options->'payload'->>'layer' = '5d12f356-349a-4463-a57c-5fc54eede6ba'; -- 2x
-- Layer: Nomads Base (static: a546f94b-8928-4d0b-b3ca-39bd109abd34)
-- Flow: Ocean Nomads: Create Nomad
-- Flow: Ocean Nomads: Update Nomad
-- Flow: Ocean Nomads: Delete Nomad
UPDATE public.directus_operations
SET options = jsonb_set(options::jsonb,'{payload,layer}', to_jsonb((SELECT id FROM layers WHERE name = 'Nomads Base')), true)
WHERE options->'payload'->>'layer' = 'a546f94b-8928-4d0b-b3ca-39bd109abd34'; -- 1x
UPDATE public.directus_operations
SET options = jsonb_set(options::jsonb,'{query,filter,_and,0,layer,_eq}', to_jsonb((SELECT id FROM layers WHERE name = 'Nomads Base')), true)
WHERE options->'query'->'filter'->'_and'->0->'layer'->>'_eq' = 'a546f94b-8928-4d0b-b3ca-39bd109abd34'; -- 2x
-- Layer: Nomads Location (static: 1c0a440f-bdf8-43a0-80bc-2d099d69b3ca)
-- Flow: Ocean Nomads: Create Location
-- Flow: Ocean Nomads: Update Nomad
-- Flow: Ocean Nomads: Delete Nomad
UPDATE public.directus_operations
SET options = jsonb_set(options::jsonb,'{query,filter,_and,0,layer,_eq}', to_jsonb((SELECT id FROM layers WHERE name = 'Nomads Location')), true)
WHERE options->'query'->'filter'->'_and'->0->'layer'->>'_eq' = '1c0a440f-bdf8-43a0-80bc-2d099d69b3ca'; -- 2x
UPDATE public.directus_operations
SET options = jsonb_set(options::jsonb,'{filter,$trigger,payload,layer,_eq}', to_jsonb((SELECT id FROM layers WHERE name = 'Nomads Location')), true)
WHERE options->'filter'->'$trigger'->'payload'->'layer'->>'_eq' = '1c0a440f-bdf8-43a0-80bc-2d099d69b3ca'; -- 1x