2019-11-29 12:35:50 -05:00
|
|
|
--Landuse is hierachical. Highest level is Order (ie. Residential) then Group (ie Residential-Dwelling) then Class (ie Residential-Dwelling-Detached house)
|
|
|
|
--Interface will collected most detailed (class) but visualise highest level (order)
|
|
|
|
--Landuse is a table as #358
|
2019-12-02 10:57:22 -05:00
|
|
|
--Land use class, group and order will be stored in a new table
|
|
|
|
DROP TABLE IF EXISTS reference_tables.buildings_landuse_order CASCADE;
|
2019-12-02 15:58:50 -05:00
|
|
|
DROP TABLE IF EXISTS reference_tables.buildings_landuse_group CASCADE;
|
2019-12-02 10:57:22 -05:00
|
|
|
DROP TABLE IF EXISTS reference_tables.buildings_landuse_class CASCADE;
|
2019-11-29 12:35:50 -05:00
|
|
|
|
|
|
|
-- Land use class or classes, array object, client constrained.
|
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS current_landuse_class;
|
|
|
|
|
2019-12-02 15:58:50 -05:00
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS current_landuse_group;
|
|
|
|
|
2019-11-29 12:35:50 -05:00
|
|
|
-- Land use order, singular. Client and db constrained.
|
|
|
|
ALTER TABLE buildings DROP COLUMN IF EXISTS current_landuse_order;
|