Skip to content

Commit

Permalink
build: fix check for projectvisibility type in migration
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Jan 23, 2024
1 parent 8a3723e commit 2ede26d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/migrations/004-organisation-odk-creds.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ALTER TABLE IF EXISTS public.organisations
-- Create visibility enum if it doesn't exist
DO $$
BEGIN
IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'visibility') THEN
IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'projectvisibility') THEN
CREATE TYPE public.projectvisibility AS ENUM (
'PUBLIC',
'PRIVATE',
Expand Down

0 comments on commit 2ede26d

Please sign in to comment.