Skip to content

Commit

Permalink
build: fix adding schema to geometrylog table in fmtm init sql
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Feb 5, 2025
1 parent 04b8d8e commit 4dc0158
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 @@ -409,14 +409,14 @@ ALTER TABLE public.submission_photos_id_seq OWNER TO fmtm;
ALTER SEQUENCE public.submission_photos_id_seq
OWNED BY public.submission_photos.id;

CREATE TABLE geometrylog (
CREATE TABLE public.geometrylog (
id UUID NOT NULL DEFAULT gen_random_uuid(),
geojson JSONB NOT NULL,
status geomstatus,
project_id int,
task_id int
);
ALTER TABLE geometrylog OWNER TO fmtm;
ALTER TABLE public.geometrylog OWNER TO fmtm;

-- nextval for primary keys (autoincrement)

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


-- Foreign keys
Expand Down

0 comments on commit 4dc0158

Please sign in to comment.