Note that downgrades will fail of such data is present

As there is no unknown building type reclassifying is impossible
This commit is contained in:
Mateusz Konieczny 2022-02-10 16:10:55 +01:00
parent bba80f4511
commit ead7c93867
2 changed files with 3 additions and 0 deletions

View File

@ -1,2 +1,3 @@
-- note that you need to somehow reclassify such buildings, if present - before downgrading
DELETE FROM reference_tables.landuse_classifications WHERE landuse_id = 'U071X'; DELETE FROM reference_tables.landuse_classifications WHERE landuse_id = 'U071X';
DELETE FROM reference_tables.buildings_landuse_group WHERE landuse_id = 'U071X'; DELETE FROM reference_tables.buildings_landuse_group WHERE landuse_id = 'U071X';

View File

@ -1,3 +1,5 @@
-- note that you need to somehow reclassify such buildings, if present - before downgrading
-- equivalent to 015 migration -- equivalent to 015 migration
INSERT INTO reference_tables.landuse_classifications INSERT INTO reference_tables.landuse_classifications
(landuse_id, description, level, parent_id, is_used) (landuse_id, description, level, parent_id, is_used)