Merge pull request #19435 from civicrm/5.34
[civicrm-core.git] / CRM / Upgrade / Incremental / sql / 5.34.alpha1.mysql.tpl
CommitLineData
e10c0223 1{* file to handle db changes in 5.34.alpha1 during upgrade *}
04ce1ca9
JG
2
3-- Add missing state for South Korea
4SELECT @country_id := id from civicrm_country where name = 'Korea, Republic of' AND iso_code = 'KR';
5INSERT IGNORE INTO `civicrm_state_province` (`id`, `country_id`, `abbreviation`, `name`) VALUES
6db44f5a 6(NULL, @country_id, '50', 'Sejong');
dce0a4a7
SL
7
8-- Remove any references to custom fields from mapping field table that no longer exist
9DELETE FROM civicrm_mapping_field
10WHERE name NOT IN ( SELECT concat('custom_', id) FROM civicrm_custom_field)
11AND name LIKE 'custom_%';