CDF display format: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 21: | Line 21: | ||
This UPDATE query is just one of several that might need to be applied | This UPDATE query is just one of several that might need to be applied | ||
<pre> | <pre> | ||
Update `field` | |||
SET `field`.display_mechanism = | SET `field`.display_mechanism = null | ||
where `field`.display_mechanism = '' AND | |||
`field`. fieldtype = 'cdf' | |||
</pre> | </pre> | ||
[[Category:NoPublic]] | [[Category:NoPublic]] | ||
[[Category:SQL Queries]] | [[Category:SQL Queries]] | ||
Revision as of 16:19, 12 February 2014
This result set should be compared with the list of correct combinations-
SELECT `field`. fieldtype, `field`.display_mechanism, customdefinedfield.cdf_datatype, Count(`field`.field_guid) FROM customdefinedfield Inner Join `field` ON `field`.cdf_guid = customdefinedfield.cdf_id GROUP BY `field`.fieldtype, `field`.display_mechanism, customdefinedfield.cdf_datatype ORDER BY `field`.fieldtype ASC, `field`.display_mechanism ASC, customdefinedfield.cdf_datatype ASC
This UPDATE query is just one of several that might need to be applied
Update `field` SET `field`.display_mechanism = null where `field`.display_mechanism = '' AND `field`. fieldtype = 'cdf'