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');