From 8a3723e81a52ee7078e8c02582b81ce952025c42 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Tue, 23 Jan 2024 19:31:17 +0000 Subject: [PATCH] fix: apply migration to projects table --- src/backend/migrations/004-organisation-odk-creds.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/migrations/004-organisation-odk-creds.sql b/src/backend/migrations/004-organisation-odk-creds.sql index 49f6a3c944..deb0f26eca 100644 --- a/src/backend/migrations/004-organisation-odk-creds.sql +++ b/src/backend/migrations/004-organisation-odk-creds.sql @@ -28,7 +28,7 @@ END $$; ALTER TYPE public.projectvisibility OWNER TO fmtm; -- Add field to projects table -ALTER TABLE IF EXISTS public.organisations +ALTER TABLE IF EXISTS public.projects DROP COLUMN IF EXISTS private, ADD COLUMN IF NOT EXISTS visibility public.projectvisibility NOT NULL DEFAULT 'PUBLIC';