From db34ee5b441ec90074a7a79d4455251abccf26f1 Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Mon, 14 Feb 2022 13:50:49 +0100 Subject: [PATCH] Remove virtual migration it was an actual migration executed, but commited is a bit different to avoid completely changing meaning in database it ended this way due to problems with coordination between code and mapping --- migrations/025.actual.sql | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 migrations/025.actual.sql diff --git a/migrations/025.actual.sql b/migrations/025.actual.sql deleted file mode 100644 index 2aa64631..00000000 --- a/migrations/025.actual.sql +++ /dev/null @@ -1,37 +0,0 @@ -INSERT INTO reference_tables.landuse_classifications -(landuse_id, description, level, parent_id, is_used) -VALUES -('U15X','Unclassified, presumed non-residential','order',NULL,True); -INSERT INTO reference_tables.buildings_landuse_order -(landuse_id, description) -VALUES -('U15X','Unclassified, presumed non-residential'); - -INSERT INTO reference_tables.landuse_classifications -(landuse_id, description, level, parent_id, is_used) -VALUES -('U073X','Unclassified, presumed non-residential','group','U15X',True); -INSERT INTO reference_tables.buildings_landuse_group -(landuse_id, description, parent_order_id) -VALUES -('U073X','Unclassified, presumed non-residential', 'U15X'); - -UPDATE buildings -SET current_landuse_order = 'Unclassified, presumed non-residential' -WHERE current_landuse_order = 'Unclassified buildings'; - -UPDATE buildings -SET current_landuse_group = '{"Unclassified, presumed non-residential"}' -WHERE current_landuse_group = '{"Unclassified, likely residential"}'; - -DELETE FROM reference_tables.landuse_classifications -WHERE landuse_id='U14X'; - -DELETE FROM reference_tables.buildings_landuse_order -WHERE landuse_id='U14X'; - -DELETE FROM reference_tables.landuse_classifications -WHERE landuse_id='U072X'; - -DELETE FROM reference_tables.buildings_landuse_group -WHERE landuse_id='U072X';