drupal-civicrm/sites/all/modules/civicrm/CRM/Upgrade/Incremental/sql/4.7.8.mysql.tpl

18 lines
992 B
Smarty
Raw Permalink Normal View History

2018-01-14 15:10:16 +02:00
{* file to handle db changes in 4.7.8 during upgrade *}
-- CRM-18516 Convert the date fields relating to group caching and acl caching timestamp
ALTER TABLE civicrm_group CHANGE cache_date cache_date timestamp NULL DEFAULT NULL , CHANGE refresh_date refresh_date timestamp NULL DEFAULT NULL;
ALTER TABLE civicrm_acl_cache CHANGE modified_date modified_date timestamp NULL DEFAULT NULL;
-- CRM-18537
DELETE FROM civicrm_state_province WHERE name = 'Fernando de Noronha';
-- CRM-17118 extend civicrm_address postal_code to accept full data strings from paypal etc.
ALTER TABLE civicrm_address CHANGE `postal_code` `postal_code` varchar(64) ;
-- CRM-16189
SELECT @contributionNavId := id, @domainID := domain_id FROM civicrm_navigation WHERE name = 'Contributions';
SELECT @navMaxWeight := MAX(ROUND(weight))+1 from civicrm_navigation WHERE parent_id = @contributionNavId;
UPDATE civicrm_navigation SET has_separator = 1 WHERE name = 'Manage Price Sets' AND parent_id = @contributionNavId;