From f130578836b5f7b5b92094271a74234d2bb68482 Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Tue, 11 Jan 2022 17:51:07 +0100 Subject: [PATCH] Add ability to mark constructions as garden buildings --- migrations/023.garden_buildings.down.sql | 2 ++ migrations/023.garden_buildings.up.sql | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 migrations/023.garden_buildings.down.sql create mode 100644 migrations/023.garden_buildings.up.sql diff --git a/migrations/023.garden_buildings.down.sql b/migrations/023.garden_buildings.down.sql new file mode 100644 index 00000000..8e23b73d --- /dev/null +++ b/migrations/023.garden_buildings.down.sql @@ -0,0 +1,2 @@ +DELETE FROM reference_tables.landuse_classifications WHERE landuse_id = 'U071X'; +DELETE FROM reference_tables.buildings_landuse_group WHERE landuse_id = 'U071X'; diff --git a/migrations/023.garden_buildings.up.sql b/migrations/023.garden_buildings.up.sql new file mode 100644 index 00000000..bb340fb7 --- /dev/null +++ b/migrations/023.garden_buildings.up.sql @@ -0,0 +1,14 @@ +-- equivalent to 015 migration +INSERT INTO reference_tables.landuse_classifications +(landuse_id, description, level, parent_id, is_used) +VALUES +-- group +('U071X','Garden buildings','group','U070',True); + + +-- equivalent to 016 migration +INSERT INTO reference_tables.buildings_landuse_group +(landuse_id, description, parent_order_id) +VALUES +-- group +('U071X','Garden buildings','U070');