*
* Generated from xml/schema/CRM/Core/Navigation.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6400fef9c925231f0d6245030ec46e68)
+ * (GenCodeChecksum:a26cb263ead3cb0d9bb3f0fda7fbec3c)
*/
/**
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Active'),
'description' => ts('Is this navigation item active?'),
+ 'required' => TRUE,
'where' => 'civicrm_navigation.is_active',
+ 'default' => '1',
'table_name' => 'civicrm_navigation',
'entity' => 'Navigation',
'bao' => 'CRM_Core_BAO_Navigation',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Order'),
'description' => ts('Ordering of the navigation items in various blocks.'),
+ 'required' => TRUE,
'where' => 'civicrm_navigation.weight',
+ 'default' => '0',
'table_name' => 'civicrm_navigation',
'entity' => 'Navigation',
'bao' => 'CRM_Core_BAO_Navigation',
{* file to handle db changes in 5.47.alpha1 during upgrade *}
+
+UPDATE `civicrm_navigation` SET `is_active` = 0 WHERE `is_active` IS NULL;
+UPDATE `civicrm_navigation` SET `weight` = 0 WHERE `weight` IS NULL;
+ALTER TABLE `civicrm_navigation`
+ MODIFY COLUMN `is_active` tinyint NOT NULL DEFAULT 1 COMMENT 'Is this navigation item active?',
+ MODIFY COLUMN `weight` int NOT NULL DEFAULT 0 COMMENT 'Ordering of the navigation items in various blocks.';
<title>Is Active</title>
<type>boolean</type>
<comment>Is this navigation item active?</comment>
+ <default>1</default>
+ <required>true</required>
<add>3.0</add>
</field>
<field>
<title>Order</title>
<type>int</type>
<comment>Ordering of the navigation items in various blocks.</comment>
+ <default>0</default>
+ <required>true</required>
<add>3.0</add>
</field>
</table>