Add breeding source detail page
A bunch of it is currently placeholders, but I got the map marker working so I'm saving it.
This commit is contained in:
parent
6dca03fd0a
commit
f599d831c8
8 changed files with 740 additions and 6 deletions
14
migrations/00015_fs_geometry.sql
Normal file
14
migrations/00015_fs_geometry.sql
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
-- +goose Up
|
||||
ALTER TABLE fs_pointlocation ADD COLUMN geom geometry(Point, 3857); -- as specified by the ArcGIS API
|
||||
UPDATE fs_pointlocation SET geom = ST_SetSRID(ST_MakePoint(geometry_x, geometry_y), 3857);
|
||||
|
||||
ALTER TABLE fs_treatment ADD COLUMN geom geometry(Point, 3857); -- as specified by the ArcGIS API
|
||||
UPDATE fs_treatment SET geom = ST_SetSRID(ST_MakePoint(geometry_x, geometry_y), 3857);
|
||||
|
||||
ALTER TABLE fs_mosquitoinspection ADD COLUMN geom geometry(Point, 3857); -- as specified by the ArcGIS API
|
||||
UPDATE fs_mosquitoinspection SET geom = ST_SetSRID(ST_MakePoint(geometry_x, geometry_y), 3857);
|
||||
|
||||
-- +goose Down
|
||||
ALTER TABLE fs_pointlocation DROP COLUMN geom;
|
||||
ALTER TABLE fs_treatment DROP COLUMN geom;
|
||||
ALTER TABLE fs_mosquitoinspection DROP COLUMN geom;
|
||||
Loading…
Add table
Add a link
Reference in a new issue