Skip to content

Commit

Permalink
build: fix base schema init (a few sql errors)
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Feb 5, 2025
1 parent 5090d5a commit 00df95e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/backend/migrations/init/fmtm_base_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ OWNED BY public.submission_photos.id;
CREATE TABLE public.geometrylog (
id UUID NOT NULL DEFAULT gen_random_uuid(),
geojson JSONB NOT NULL,
status geomstatus,
status public.geomstatus,
project_id int,
task_id int
);
Expand Down Expand Up @@ -490,7 +490,7 @@ ADD CONSTRAINT xlsforms_title_key UNIQUE (title);
ALTER TABLE ONLY public.submission_photos
ADD CONSTRAINT submission_photos_pkey PRIMARY KEY (id);

ALTER TABLE ONLY public.idx_geometrylog
ALTER TABLE ONLY public.geometrylog
ADD CONSTRAINT geometrylog_pkey PRIMARY KEY (id);

-- Indexing
Expand Down Expand Up @@ -540,7 +540,7 @@ ON public.odk_entities USING btree (
entity_id, task_id
);
CREATE INDEX idx_geometrylog_geojson
ON public.geometrylog USING gin (geom);
ON public.geometrylog USING gin (geojson);


-- Foreign keys
Expand Down

0 comments on commit 00df95e

Please sign in to comment.