Skip to content

Commit

Permalink
Merge pull request #12116 from eileenmcnaughton/cust_field
Browse files Browse the repository at this point in the history
Add DB default of 0 for custom_group.is_multiple - CRM-21853
  • Loading branch information
seamuslee001 authored May 14, 2018
2 parents d425721 + c0c9c8b commit b5b33b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Upgrade/Incremental/sql/5.3.alpha1.mysql.tpl
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
{* 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;
2 changes: 2 additions & 0 deletions xml/schema/Core/CustomGroup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
<type>boolean</type>
<title>Custom Group Is Active?</title>
<comment>Is this property active?</comment>
<default>1</default>
<add>1.1</add>
</field>
<field>
Expand All @@ -154,6 +155,7 @@
<type>boolean</type>
<title>Supports Multiple Records</title>
<comment>Does this group hold multiple values?</comment>
<default>0</default>
<add>2.0</add>
</field>
<field>
Expand Down

0 comments on commit b5b33b7

Please sign in to comment.