Merge pull request #19232 from eileenmcnaughton/friend
[civicrm-core.git] / CRM / Upgrade / Incremental / sql / 5.27.beta1.mysql.tpl
CommitLineData
e49a5538 1{* file to handle db changes in 5.27.beta1 during upgrade *}
b8be3222 2ALTER TABLE civicrm_option_value MODIFY COLUMN `filter` int unsigned DEFAULT 0 COMMENT 'Bitwise logic can be used to create subsets of options within an option_group for different uses.';
3
4-- To think about: This will update ones where someone has explicitly set it to NULL for their own purposes and they don't care about the dropdowns. How likely is that? How can we tell if it's one they created since 5.26 and didn't intend to set it to NULL?
5UPDATE civicrm_option_value ov
6INNER JOIN civicrm_option_group og ON (ov.option_group_id = og.id AND og.name='activity_type')
7SET ov.filter = 0
8WHERE ov.filter IS NULL;