rename designers to building_designers
This commit is contained in:
parent
a34a2c6d66
commit
0a9d4c3ba8
@ -335,7 +335,7 @@ export const buildingAttributesConfig = valueType<DataFieldConfig>()({ /* eslint
|
||||
edit: true,
|
||||
verify: true
|
||||
},
|
||||
designers: {
|
||||
building_designers: {
|
||||
edit: true,
|
||||
verify: true
|
||||
},
|
||||
|
@ -92,23 +92,23 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
|
||||
verified_count={props.building.verified.developer_type}
|
||||
/>
|
||||
<MultiDataEntry
|
||||
title={dataFields.designers.title}
|
||||
slug="designers"
|
||||
value={props.building.designers}
|
||||
title={dataFields.building_designers.title}
|
||||
slug="building_designers"
|
||||
value={props.building.building_designers}
|
||||
mode={props.mode}
|
||||
copy={props.copy}
|
||||
onChange={props.onChange}
|
||||
tooltip={dataFields.designers.tooltip}
|
||||
tooltip={dataFields.building_designers.tooltip}
|
||||
editableEntries={true}
|
||||
maxLength={747}
|
||||
/>
|
||||
<Verification
|
||||
slug="designers"
|
||||
allow_verify={props.user !== undefined && props.building.designers !== null && !props.edited}
|
||||
slug="building_designers"
|
||||
allow_verify={props.user !== undefined && props.building.building_designers !== null && !props.edited}
|
||||
onVerify={props.onVerify}
|
||||
user_verified={props.user_verified.hasOwnProperty("designers")}
|
||||
user_verified_as={props.user_verified.designers}
|
||||
verified_count={props.building.verified.designers}
|
||||
user_verified={props.user_verified.hasOwnProperty("building_designers")}
|
||||
user_verified_as={props.user_verified.building_designers}
|
||||
verified_count={props.building.verified.building_designers}
|
||||
/>
|
||||
<MultiDataEntry
|
||||
title={dataFields.designers_source_link.title}
|
||||
|
@ -664,7 +664,7 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
|
||||
"Other"
|
||||
]
|
||||
},
|
||||
designers: {
|
||||
building_designers: {
|
||||
category: Category.Team,
|
||||
title: "Who were the main designer(s)?",
|
||||
tooltip: "Free text. First name, space, then Last name.",
|
||||
|
@ -1,7 +1,7 @@
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS has_extension;
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS extension_year;
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS developer_type;
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS designers;
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS building_designers;
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS designers_source_link;
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS lead_designer_type;
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS designer_awards;
|
||||
|
@ -1,7 +1,7 @@
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS has_extension boolean null;
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS extension_year smallint;
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS developer_type varchar;
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS designers varchar;
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS building_designers varchar;
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS designers_source_link text[];
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS lead_designer_type varchar;
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS designer_awards boolean null;
|
||||
|
Loading…
Reference in New Issue
Block a user