colouring-montreal/migrations/024.unclassified_buildings.up.sql
Mateusz Konieczny ead7c93867 Note that downgrades will fail of such data is present
As there is no unknown building type reclassifying is impossible
2022-02-14 13:36:19 +01:00

33 lines
925 B
SQL

-- note that you need to somehow reclassify such buildings, if present - before downgrading
-- equivalent to 015 migration
INSERT INTO reference_tables.landuse_classifications
(landuse_id, description, level, parent_id, is_used)
VALUES
-- order
('U15X','Unclassified, presumed non-residential','order',NULL,True);
-- equivalent to 016 migration
INSERT INTO reference_tables.buildings_landuse_order
(landuse_id, description)
VALUES
-- order
('U15X','Unclassified, presumed non-residential');
-- equivalent to 015 migration
INSERT INTO reference_tables.landuse_classifications
(landuse_id, description, level, parent_id, is_used)
VALUES
-- group
('U073X','Unclassified, presumed non-residential','group','U15X',True);
-- equivalent to 016 migration
INSERT INTO reference_tables.buildings_landuse_group
(landuse_id, description, parent_order_id)
VALUES
-- group
('U073X','Unclassified, presumed non-residential','U15X');