Merge pull request #590 from colouring-london/feature/migrations_construction
WIP for #361 intial construction db elements
This commit is contained in:
commit
250c37ed75
23
migrations/0xx.construction.down.sql
Normal file
23
migrations/0xx.construction.down.sql
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
--NOTE Some construction category fields (insulation and glazing) are migrated in sustainability.up.1-extra see #405
|
||||||
|
--Primary material (brick/clay tile, slate, steel/metal, timber, stone, glass, concrete, natural-green or thatch, asphalt or other)
|
||||||
|
ALTER TABLE buildings DROP COLUMN IF EXISTS constrctn_primary_mat;
|
||||||
|
|
||||||
|
--Secondary material
|
||||||
|
ALTER TABLE buildings DROP COLUMN IF EXISTS constrctn_secondary_mat;
|
||||||
|
|
||||||
|
--Primary roof material
|
||||||
|
ALTER TABLE buildings DROP COLUMN IF EXISTS constrctn_primary_roof_mat;
|
||||||
|
|
||||||
|
--Secondary roof material
|
||||||
|
ALTER TABLE buildings DROP COLUMN IF EXISTS constrctn_secondary_roof_mat;
|
||||||
|
|
||||||
|
--Has building been extended y/n
|
||||||
|
ALTER TABLE buildings DROP COLUMN IF EXISTS constrctn_extension;
|
||||||
|
|
||||||
|
--What kind of extensions (side, rear, loft, basement)
|
||||||
|
ALTER TABLE buildings DROP COLUMN IF EXISTS constrctn_extension_type;
|
||||||
|
|
||||||
|
--Glazing type, what is most common glazing type. (unless I add into sustainability for now)
|
||||||
|
ALTER TABLE buildings DROP COLUMN IF EXISTS constrctn_glazing_type;
|
||||||
|
|
||||||
|
--Also pick up roof in this for
|
Loading…
Reference in New Issue
Block a user