Split out ability to upload flyover data from pool uploads
Tons of changes here, all in the name of quickly getting to where I can create test compliance letters.
This commit is contained in:
parent
9939434cb3
commit
ff2ec0ad14
38 changed files with 4204 additions and 233 deletions
18
db/migrations/00074_fileupload_pool_aerial_services.sql
Normal file
18
db/migrations/00074_fileupload_pool_aerial_services.sql
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
-- +goose Up
|
||||
ALTER TYPE fileupload.CSVType ADD VALUE 'Flyover' AFTER 'PoolList';
|
||||
CREATE TABLE fileupload.flyover_aerial_service (
|
||||
committed BOOLEAN NOT NULL, -- Whether or not its just proposed before a CSV file is committed
|
||||
condition fileupload.PoolConditionType NOT NULL,
|
||||
created TIMESTAMP WITHOUT TIME ZONE NOT NULL,
|
||||
creator_id INTEGER REFERENCES user_(id) NOT NULL,
|
||||
csv_file INTEGER REFERENCES fileupload.csv(file_id) NOT NULL,
|
||||
deleted TIMESTAMP WITHOUT TIME ZONE,
|
||||
geom geometry(Point, 4326),
|
||||
h3cell h3index,
|
||||
id SERIAL,
|
||||
organization_id INTEGER REFERENCES organization(id) NOT NULL,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
-- +goose Down
|
||||
DROP TABLE fileupload.flyover_aerial_services;
|
||||
ALTER TYPE fileupload.CSVType DROP VALUE 'Flyover';
|
||||
Loading…
Add table
Add a link
Reference in a new issue