From 463a53ab54205c41d86298537c56b8d244d4b613 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:46:12 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../archived/2024-08-09/002-add-xforms-table.sql | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/backend/migrations/archived/2024-08-09/002-add-xforms-table.sql b/src/backend/migrations/archived/2024-08-09/002-add-xforms-table.sql index ccb41dfa2e..fe11ecf7f3 100644 --- a/src/backend/migrations/archived/2024-08-09/002-add-xforms-table.sql +++ b/src/backend/migrations/archived/2024-08-09/002-add-xforms-table.sql @@ -70,14 +70,19 @@ SET FROM public.tasks WHERE NOT EXISTS ( - SELECT 1 FROM public.projects WHERE odk_token IS NOT NULL + SELECT 1 FROM public.projects + WHERE odk_token IS NOT NULL ) LIMIT 1 ) WHERE id = ( SELECT id FROM public.projects - WHERE NOT EXISTS (SELECT 1 FROM public.projects WHERE odk_token IS NOT NULL) + WHERE + NOT EXISTS ( + SELECT 1 FROM public.projects + WHERE odk_token IS NOT NULL + ) LIMIT 1 );