2020-02-13 12:22:16 -05:00
|
|
|
-- Remove sustainability fields, update in paralell with adding new fields
|
|
|
|
-- Last significant retrofit date YYYY
|
|
|
|
-- Need to add a constraint to sust_retrofit_date
|
|
|
|
-- Renewal technologies
|
|
|
|
-- Constraint - Front end multi select back end ENUM
|
|
|
|
-- Values:
|
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS sust_renewables_tech;
|
|
|
|
|
2020-02-27 11:19:52 -05:00
|
|
|
--Has a building had a major renovation without extenstion (captured in form)
|
|
|
|
--Boolean yes/no - links to the the DATE
|
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS sust_retrofitted;
|
2020-02-13 12:22:16 -05:00
|
|
|
|
|
|
|
-- Generating capacity of those renewables, on selection of one of the above generate correspondening front end input for this. Pair values
|
|
|
|
-- Constraint more than 0 less than?, integer only
|
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS sust_renewables_capax;
|
|
|
|
|
|
|
|
-- Biodiversity
|
|
|
|
-- Green roof, green wall, both
|
|
|
|
-- Constrain drop down and enum
|
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS sust_biodiversity;
|
|
|
|
|
|
|
|
-- Insulation, tool tip for glazing in construction to cross link
|
|
|
|
-- Which components are insulated
|
|
|
|
-- Cosntraint multi-entry and ENUM stored in josnb object
|
2020-02-27 11:19:52 -05:00
|
|
|
-- Values; Wall, Roof, FLOOR
|
2020-02-13 12:22:16 -05:00
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS constrctn_insulation;
|
|
|
|
|
|
|
|
-- Water recycling
|
|
|
|
-- yes / no
|
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS sust_h2o_recyling;
|
|
|
|
|
|
|
|
-- Rain water harvesting
|
2020-02-27 11:19:52 -05:00
|
|
|
-- Does building store it's rainwater, helps combat flood risk
|
2020-02-13 12:22:16 -05:00
|
|
|
-- yes / no
|
2020-02-27 11:19:52 -05:00
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS sust_rainwater_harvest;
|