diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bbc25c9192..075b900299 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: # Lint / autoformat: Python code - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: "v0.8.2" + rev: "v0.8.3" hooks: # Run the linter - id: ruff @@ -21,7 +21,7 @@ repos: # Deps: ensure Python uv lockfile is up to date - repo: https://github.com/astral-sh/uv-pre-commit - rev: 0.5.7 + rev: 0.5.9 hooks: - id: uv-lock files: src/backend/pyproject.toml @@ -81,7 +81,7 @@ repos: # Lint & Autoformat: SQL - repo: https://github.com/sqlfluff/sqlfluff - rev: 3.2.5 + rev: 3.3.0 hooks: - id: sqlfluff-lint files: ^src/backend/migrations/.*\.sql$ 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 );