-
-
Notifications
You must be signed in to change notification settings - Fork 825
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12420 from seamuslee001/5.3-upgrade-move
dev/core#234 Move all steps from 5.3.alpha1.mysql.tpl to 5.3.0.mysql.tpl due to upgrade issues
- Loading branch information
Showing
2 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
{* file to handle db changes in 5.3.0 during upgrade *} | ||
ALTER TABLE civicrm_custom_group ALTER column is_multiple SET DEFAULT 0; | ||
UPDATE civicrm_custom_group SET is_multiple = 0 WHERE is_multiple IS NULL; | ||
ALTER TABLE civicrm_custom_group ALTER column is_active SET DEFAULT 1; | ||
ALTER TABLE civicrm_custom_field ALTER column is_view SET DEFAULT 0; | ||
UPDATE civicrm_custom_field SET is_view = 0 WHERE is_view IS NULL; | ||
ALTER TABLE civicrm_custom_field ALTER column is_required SET DEFAULT 0; | ||
UPDATE civicrm_custom_field SET is_required = 0 WHERE is_required IS NULL; | ||
ALTER TABLE civicrm_custom_field ALTER column is_searchable SET DEFAULT 0; | ||
UPDATE civicrm_custom_field SET is_searchable = 0 WHERE is_required IS NULL; | ||
ALTER TABLE civicrm_custom_field ALTER column is_active SET DEFAULT 1; | ||
|
||
SET @UKCountryId = (SELECT id FROM civicrm_country cc WHERE cc.name = 'United Kingdom'); | ||
INSERT INTO civicrm_state_province (country_id, abbreviation, name) | ||
VALUES (@UKCountryId, 'MON', 'Monmouthshire'); | ||
|
||
{* dev/core/#152 *} | ||
UPDATE `civicrm_custom_field` set `html_type` = "Multi-Select" WHERE `html_type` = "AdvMulti-Select"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1 @@ | ||
{* file to handle db changes in 5.3.alpha1 during upgrade *} | ||
ALTER TABLE civicrm_custom_group ALTER column is_multiple SET DEFAULT 0; | ||
UPDATE civicrm_custom_group SET is_multiple = 0 WHERE is_multiple IS NULL; | ||
ALTER TABLE civicrm_custom_group ALTER column is_active SET DEFAULT 1; | ||
ALTER TABLE civicrm_custom_field ALTER column is_view SET DEFAULT 0; | ||
UPDATE civicrm_custom_field SET is_view = 0 WHERE is_view IS NULL; | ||
ALTER TABLE civicrm_custom_field ALTER column is_required SET DEFAULT 0; | ||
UPDATE civicrm_custom_field SET is_required = 0 WHERE is_required IS NULL; | ||
ALTER TABLE civicrm_custom_field ALTER column is_searchable SET DEFAULT 0; | ||
UPDATE civicrm_custom_field SET is_searchable = 0 WHERE is_required IS NULL; | ||
ALTER TABLE civicrm_custom_field ALTER column is_active SET DEFAULT 1; | ||
|
||
SET @UKCountryId = (SELECT id FROM civicrm_country cc WHERE cc.name = 'United Kingdom'); | ||
INSERT INTO civicrm_state_province (country_id, abbreviation, name) | ||
VALUES (@UKCountryId, 'MON', 'Monmouthshire'); | ||
|
||
{* dev/core/#152 *} | ||
UPDATE `civicrm_custom_field` set `html_type` = "Multi-Select" WHERE `html_type` = "AdvMulti-Select"; |