From 6793a33facad23b7680e47b42ee6f57de55f7b8d Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Wed, 3 Sep 2025 17:14:53 +0100 Subject: [PATCH] delete ocean nomads specific data seeds (#354) --- .../manual/activate-normad-flows.sql | 3 -- .../manual/operation-layer-ids.sql | 29 ------------------- 2 files changed, 32 deletions(-) delete mode 100644 backend/directus-config/seeds/development/manual/activate-normad-flows.sql delete mode 100644 backend/directus-config/seeds/development/manual/operation-layer-ids.sql diff --git a/backend/directus-config/seeds/development/manual/activate-normad-flows.sql b/backend/directus-config/seeds/development/manual/activate-normad-flows.sql deleted file mode 100644 index b875f197..00000000 --- a/backend/directus-config/seeds/development/manual/activate-normad-flows.sql +++ /dev/null @@ -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)'; \ No newline at end of file diff --git a/backend/directus-config/seeds/development/manual/operation-layer-ids.sql b/backend/directus-config/seeds/development/manual/operation-layer-ids.sql deleted file mode 100644 index 699aa4c0..00000000 --- a/backend/directus-config/seeds/development/manual/operation-layer-ids.sql +++ /dev/null @@ -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