Improve name of unclassified
This commit is contained in:
parent
598ab0fa2a
commit
9ba7e04f91
@ -518,7 +518,7 @@
|
|||||||
<PolygonSymbolizer fill="#53f5dd" />
|
<PolygonSymbolizer fill="#53f5dd" />
|
||||||
</Rule>
|
</Rule>
|
||||||
<Rule>
|
<Rule>
|
||||||
<Filter>[current_landuse_order] = "Unclassified buildings"</Filter>
|
<Filter>[current_landuse_order] = "Unclassified, presumed residential"</Filter>
|
||||||
<PolygonSymbolizer fill="#6c6f8e" />
|
<PolygonSymbolizer fill="#6c6f8e" />
|
||||||
</Rule>
|
</Rule>
|
||||||
<Rule>
|
<Rule>
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
"geojson": "^0.5.0",
|
"geojson": "^0.5.0",
|
||||||
"leaflet": "^1.7.1",
|
"leaflet": "^1.7.1",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"mapnik": "^4.5.8",
|
"mapnik": "^4.5.9",
|
||||||
"markdown-to-jsx": "^7.1.3",
|
"markdown-to-jsx": "^7.1.3",
|
||||||
"node-fs": "^0.1.7",
|
"node-fs": "^0.1.7",
|
||||||
"nodemailer": "^6.4.11",
|
"nodemailer": "^6.4.11",
|
||||||
|
@ -204,7 +204,7 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} =
|
|||||||
{ color: '#fa667d', text: 'Agriculture' },
|
{ color: '#fa667d', text: 'Agriculture' },
|
||||||
{ color: '#53f5dd', text: 'Minerals' },
|
{ color: '#53f5dd', text: 'Minerals' },
|
||||||
{ color: '#ffffff', text: 'Vacant & Derelict' },
|
{ color: '#ffffff', text: 'Vacant & Derelict' },
|
||||||
{ color: '#6c6f8e', text: 'Unclassified buildings' }
|
{ color: '#6c6f8e', text: 'Unclassified, presumed residential' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
|
19
migrations/025.unclassified_buildings_tweak_name.down.sql
Normal file
19
migrations/025.unclassified_buildings_tweak_name.down.sql
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
INSERT INTO reference_tables.landuse_classifications
|
||||||
|
(landuse_id, description, level, parent_id, is_used)
|
||||||
|
VALUES
|
||||||
|
('U14X','Unclassified buildings','order',NULL,True);
|
||||||
|
INSERT INTO reference_tables.buildings_landuse_order
|
||||||
|
(landuse_id, description)
|
||||||
|
VALUES
|
||||||
|
('U14X','Unclassified buildings');
|
||||||
|
|
||||||
|
UPDATE buildings
|
||||||
|
SET current_landuse_order = 'Unclassified buildings'
|
||||||
|
WHERE current_landuse_order = 'Unclassified, presumed residential';
|
||||||
|
|
||||||
|
DELETE FROM reference_tables.landuse_classifications
|
||||||
|
WHERE landuse_id='U15X';
|
||||||
|
|
||||||
|
|
||||||
|
DELETE FROM reference_tables.buildings_landuse_order
|
||||||
|
WHERE landuse_id='U15X';
|
19
migrations/025.unclassified_buildings_tweak_name.up.sql
Normal file
19
migrations/025.unclassified_buildings_tweak_name.up.sql
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
INSERT INTO reference_tables.landuse_classifications
|
||||||
|
(landuse_id, description, level, parent_id, is_used)
|
||||||
|
VALUES
|
||||||
|
('U15X','Unclassified, presumed residential','order',NULL,True);
|
||||||
|
INSERT INTO reference_tables.buildings_landuse_order
|
||||||
|
(landuse_id, description)
|
||||||
|
VALUES
|
||||||
|
('U15X','Unclassified, presumed residential');
|
||||||
|
|
||||||
|
UPDATE buildings
|
||||||
|
SET current_landuse_order = 'Unclassified, presumed residential'
|
||||||
|
WHERE current_landuse_order = 'Unclassified buildings';
|
||||||
|
|
||||||
|
DELETE FROM reference_tables.landuse_classifications
|
||||||
|
WHERE landuse_id='U14X';
|
||||||
|
|
||||||
|
|
||||||
|
DELETE FROM reference_tables.buildings_landuse_order
|
||||||
|
WHERE landuse_id='U14X';
|
Loading…
Reference in New Issue
Block a user