dev/core#1833 Change default value of participant_listing_id to NULL from 0
[civicrm-core.git] / CRM / Upgrade / Incremental / sql / 5.28.alpha1.mysql.tpl
CommitLineData
a0f5cb5a 1{* file to handle db changes in 5.28.alpha1 during upgrade *}
487813ab 2
e0674c37
CW
3-- https://github.com/civicrm/civicrm-core/pull/17579
4ALTER TABLE `civicrm_navigation` CHANGE `has_separator`
5`has_separator` tinyint DEFAULT 0 COMMENT 'Place a separator either before or after this menu item.';
6
487813ab
MW
7-- https://github.com/civicrm/civicrm-core/pull/17450
8ALTER TABLE `civicrm_activity` CHANGE `activity_date_time` `activity_date_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Date and time this activity is scheduled to occur. Formerly named scheduled_date_time.';
9ALTER TABLE `civicrm_activity` CHANGE `created_date` `created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'When was the activity was created.';
351e8d47 10
11-- https://github.com/civicrm/civicrm-core/pull/17548
faf0012b
SL
12ALTER TABLE civicrm_contact_type CHANGE name name varchar(64) not null comment 'Internal name of Contact Type (or Subtype).';
13ALTER TABLE civicrm_contact_type CHANGE is_active is_active tinyint DEFAULT 1 COMMENT 'Is this entry active?';
14ALTER TABLE civicrm_contact_type CHANGE is_reserved is_reserved tinyint DEFAULT 0 COMMENT 'Is this contact type a predefined system type';
15UPDATE civicrm_contact_type SET is_active = 1 WHERE is_active IS NULL;
16UPDATE civicrm_contact_type SET is_reserved = 0 WHERE is_reserved IS NULL;
5d4300ea
SL
17
18-- https://lab.civicrm.org/dev/core/-/issues/1833
19ALTER TABLE civicrm_event CHANGE participant_listing_id participant_listing_id int unsigned DEFAULT NULL COMMENT 'Should we expose the participant list? Implicit FK to civicrm_option_value where option_group = participant_listing.';
20UPDATE civicrm_event SET participant_listing_id = NULL WHERE participant_listing_id = 0;