Respect '0' as a default when generating DAOs
authorColeman Watts <coleman@civicrm.org>
Tue, 17 Jul 2018 01:22:21 +0000 (21:22 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 17 Jul 2018 01:22:21 +0000 (21:22 -0400)
57 files changed:
CRM/ACL/DAO/ACL.php
CRM/Activity/DAO/Activity.php
CRM/Campaign/DAO/Survey.php
CRM/Case/DAO/Case.php
CRM/Contact/DAO/Contact.php
CRM/Contact/DAO/DashboardContact.php
CRM/Contact/DAO/Group.php
CRM/Contact/DAO/Relationship.php
CRM/Contribute/DAO/Contribution.php
CRM/Contribute/DAO/ContributionPage.php
CRM/Contribute/DAO/ContributionRecur.php
CRM/Contribute/DAO/ContributionSoft.php
CRM/Contribute/DAO/Premium.php
CRM/Contribute/DAO/Product.php
CRM/Core/DAO/ActionLog.php
CRM/Core/DAO/ActionSchedule.php
CRM/Core/DAO/Address.php
CRM/Core/DAO/Country.php
CRM/Core/DAO/CustomField.php
CRM/Core/DAO/CustomGroup.php
CRM/Core/DAO/Dashboard.php
CRM/Core/DAO/Email.php
CRM/Core/DAO/IM.php
CRM/Core/DAO/MessageTemplate.php
CRM/Core/DAO/OpenID.php
CRM/Core/DAO/OptionGroup.php
CRM/Core/DAO/OptionValue.php
CRM/Core/DAO/Persistent.php
CRM/Core/DAO/Phone.php
CRM/Core/DAO/PrevNextCache.php
CRM/Core/DAO/Tag.php
CRM/Core/DAO/UFField.php
CRM/Core/DAO/UFGroup.php
CRM/Event/Cart/DAO/Cart.php
CRM/Event/DAO/Event.php
CRM/Event/DAO/Participant.php
CRM/Financial/DAO/FinancialAccount.php
CRM/Financial/DAO/FinancialItem.php
CRM/Financial/DAO/FinancialTrxn.php
CRM/Mailing/DAO/Component.php
CRM/Mailing/DAO/Mailing.php
CRM/Mailing/DAO/MailingJob.php
CRM/Member/DAO/Membership.php
CRM/Member/DAO/MembershipBlock.php
CRM/Member/DAO/MembershipStatus.php
CRM/Member/DAO/MembershipType.php
CRM/PCP/DAO/PCP.php
CRM/PCP/DAO/PCPBlock.php
CRM/Pledge/DAO/Pledge.php
CRM/Pledge/DAO/PledgeBlock.php
CRM/Pledge/DAO/PledgePayment.php
CRM/Price/DAO/PriceField.php
CRM/Price/DAO/PriceFieldValue.php
CRM/Price/DAO/PriceSet.php
CRM/Report/DAO/ReportInstance.php
CRM/SMS/DAO/Provider.php
xml/templates/dao.tpl

index 97e9f1c151fe9ea76a49314d631e142af1a7ae96..d5b37d89f3aef94c5ed7b289e4cfe3b1f40b7445 100644 (file)
@@ -168,6 +168,7 @@ class CRM_ACL_DAO_ACL extends CRM_Core_DAO {
           'title' => ts('Deny ACL?'),
           'description' => 'Is this ACL entry Allow  (0) or Deny (1) ?',
           'required' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_acl',
           'entity' => 'ACL',
           'bao' => 'CRM_ACL_BAO_ACL',
index c10f7d5b8816e525732523c336b44269c1df1941..bf8a0be6140632201ec82772916c52058146de32 100644 (file)
@@ -475,6 +475,7 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO {
           'headerPattern' => '/(is.)?test(.activity)?/i',
           'dataPattern' => '',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_activity',
           'entity' => 'Activity',
           'bao' => 'CRM_Activity_BAO_Activity',
@@ -505,6 +506,7 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO {
           'name' => 'is_auto',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Auto'),
+          'default' => '0',
           'table_name' => 'civicrm_activity',
           'entity' => 'Activity',
           'bao' => 'CRM_Activity_BAO_Activity',
@@ -575,6 +577,7 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO {
           'headerPattern' => '/(activity.)?(trash|deleted)/i',
           'dataPattern' => '',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_activity',
           'entity' => 'Activity',
           'bao' => 'CRM_Activity_BAO_Activity',
@@ -651,6 +654,7 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO {
           'headerPattern' => '/(activity.)?(star|favorite)/i',
           'dataPattern' => '',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_activity',
           'entity' => 'Activity',
           'bao' => 'CRM_Activity_BAO_Activity',
index ebb2c5275acfe3be6985f400f7a208074d77017e..935b3dda570ce036c513ebdb672e7b512d278bc5 100644 (file)
@@ -349,6 +349,7 @@ class CRM_Campaign_DAO_Survey extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Default Survey'),
           'description' => 'Is this default survey?',
+          'default' => '0',
           'table_name' => 'civicrm_survey',
           'entity' => 'Survey',
           'bao' => 'CRM_Campaign_BAO_Survey',
@@ -412,6 +413,7 @@ class CRM_Campaign_DAO_Survey extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('No Email Verification'),
           'description' => 'Bypass the email verification.',
+          'default' => '0',
           'table_name' => 'civicrm_survey',
           'entity' => 'Survey',
           'bao' => 'CRM_Campaign_BAO_Survey',
index 514544ec04c340c03dfd71e12f1a2c4cb60fef2d..b881d0400649e2fb07033d8e9cb931b0b169044d 100644 (file)
@@ -271,6 +271,7 @@ class CRM_Case_DAO_Case extends CRM_Core_DAO {
           'headerPattern' => '',
           'dataPattern' => '',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_case',
           'entity' => 'Case',
           'bao' => 'CRM_Case_BAO_Case',
index 59e9108b71414a7ec9295581b6b5e3fad443c8f0..d7049145cb1a3bf122bb09b16b62c1dda742aec3 100644 (file)
@@ -487,6 +487,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
           'headerPattern' => '/d(o )?(not )?(email)/i',
           'dataPattern' => '/^\d{1,}$/',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_contact',
           'entity' => 'Contact',
           'bao' => 'CRM_Contact_BAO_Contact',
@@ -504,6 +505,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
           'headerPattern' => '/d(o )?(not )?(call|phone)/i',
           'dataPattern' => '/^\d{1,}$/',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_contact',
           'entity' => 'Contact',
           'bao' => 'CRM_Contact_BAO_Contact',
@@ -521,6 +523,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
           'headerPattern' => '/^(d(o\s)?n(ot\s)?mail)|(\w*)?bulk\s?(\w*)$/i',
           'dataPattern' => '/^\d{1,}$/',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_contact',
           'entity' => 'Contact',
           'bao' => 'CRM_Contact_BAO_Contact',
@@ -538,6 +541,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
           'headerPattern' => '/d(o )?(not )?(sms)/i',
           'dataPattern' => '/^\d{1,}$/',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_contact',
           'entity' => 'Contact',
           'bao' => 'CRM_Contact_BAO_Contact',
@@ -555,6 +559,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
           'headerPattern' => '/d(o )?(not )?(trade)/i',
           'dataPattern' => '/^\d{1,}$/',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_contact',
           'entity' => 'Contact',
           'bao' => 'CRM_Contact_BAO_Contact',
@@ -574,6 +579,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
           'headerPattern' => '',
           'dataPattern' => '',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_contact',
           'entity' => 'Contact',
           'bao' => 'CRM_Contact_BAO_Contact',
@@ -1218,6 +1224,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
           'headerPattern' => '/i(s\s)?d(eceased)$/i',
           'dataPattern' => '',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_contact',
           'entity' => 'Contact',
           'bao' => 'CRM_Contact_BAO_Contact',
@@ -1367,6 +1374,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
           'where' => 'civicrm_contact.is_deleted',
           'headerPattern' => '',
           'dataPattern' => '',
+          'default' => '0',
           'table_name' => 'civicrm_contact',
           'entity' => 'Contact',
           'bao' => 'CRM_Contact_BAO_Contact',
index e3eb9e07bd949880a4b203a614a6c25c538ce527..a6538b2c6997bea8405ff703569ad0e4645b83c6 100644 (file)
@@ -139,6 +139,7 @@ class CRM_Contact_DAO_DashboardContact extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Column No'),
           'description' => 'column no for this widget',
+          'default' => '0',
           'table_name' => 'civicrm_dashboard_contact',
           'entity' => 'DashboardContact',
           'bao' => 'CRM_Contact_BAO_DashboardContact',
@@ -149,6 +150,7 @@ class CRM_Contact_DAO_DashboardContact extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Dashlet is Active?'),
           'description' => 'Is this widget active?',
+          'default' => '0',
           'table_name' => 'civicrm_dashboard_contact',
           'entity' => 'DashboardContact',
           'bao' => 'CRM_Contact_BAO_DashboardContact',
@@ -159,6 +161,7 @@ class CRM_Contact_DAO_DashboardContact extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Order'),
           'description' => 'Ordering of the widgets.',
+          'default' => '0',
           'table_name' => 'civicrm_dashboard_contact',
           'entity' => 'DashboardContact',
           'bao' => 'CRM_Contact_BAO_DashboardContact',
index e1de1bb5f8776cf5505682745362aa505f37d858..d0b22f0c7369ab6c9d2c7de3785ecc6aad69543d 100644 (file)
@@ -401,6 +401,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Group is Hidden'),
           'description' => 'Is this group hidden?',
+          'default' => '0',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',
@@ -410,6 +411,7 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
           'name' => 'is_reserved',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Group is Reserved'),
+          'default' => '0',
           'table_name' => 'civicrm_group',
           'entity' => 'Group',
           'bao' => 'CRM_Contact_BAO_Group',
index 62b70944f1127335fec80fa73a11916667dcbf20..740d0a752548aeffe70d195c1ffa6ebc76a36ae8 100644 (file)
@@ -253,6 +253,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'title' => ts('Contact A has Permission Over Contact B'),
           'description' => 'Permission that Contact A has to view/update Contact B',
           'required' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_relationship',
           'entity' => 'Relationship',
           'bao' => 'CRM_Contact_BAO_Relationship',
@@ -270,6 +271,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'title' => ts('Contact B has Permission Over Contact A'),
           'description' => 'Permission that Contact B has to view/update Contact A',
           'required' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_relationship',
           'entity' => 'Relationship',
           'bao' => 'CRM_Contact_BAO_Relationship',
index 527cb61eb562cc192d8739c8357da16d9c02a039..d92f6f7958f66d235a1621c2e8a4f2aec851fedf 100644 (file)
@@ -399,6 +399,7 @@ class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO {
           'headerPattern' => '/non?.?deduct/i',
           'dataPattern' => '/^\d+(\.\d{2})?$/',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_contribution',
           'entity' => 'Contribution',
           'bao' => 'CRM_Contribute_BAO_Contribution',
@@ -696,6 +697,7 @@ class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO {
           'headerPattern' => '',
           'dataPattern' => '',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_contribution',
           'entity' => 'Contribution',
           'bao' => 'CRM_Contribute_BAO_Contribution',
@@ -713,6 +715,7 @@ class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO {
           'headerPattern' => '',
           'dataPattern' => '',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_contribution',
           'entity' => 'Contribution',
           'bao' => 'CRM_Contribute_BAO_Contribution',
index ab08e950890ab8f8c9869c3d88d5c2149e21cdca..98565ad90e42cd3d2f17295fc40aa73cce9787f7 100644 (file)
@@ -458,6 +458,7 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Credit Card Only?'),
           'description' => 'if true - processing logic must reject transaction at confirmation stage if pay method != credit card',
+          'default' => '0',
           'table_name' => 'civicrm_contribution_page',
           'entity' => 'ContributionPage',
           'bao' => 'CRM_Contribute_BAO_ContributionPage',
@@ -479,6 +480,7 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Recurring'),
           'description' => 'if true - allows recurring contributions, valid only for PayPal_Standard',
+          'default' => '0',
           'table_name' => 'civicrm_contribution_page',
           'entity' => 'ContributionPage',
           'bao' => 'CRM_Contribute_BAO_ContributionPage',
@@ -521,6 +523,7 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Support Recurring Intervals'),
           'description' => 'if true - supports recurring intervals',
+          'default' => '0',
           'table_name' => 'civicrm_contribution_page',
           'entity' => 'ContributionPage',
           'bao' => 'CRM_Contribute_BAO_ContributionPage',
@@ -531,6 +534,7 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Recurring Installments?'),
           'description' => 'if true - asks user for recurring installments',
+          'default' => '0',
           'table_name' => 'civicrm_contribution_page',
           'entity' => 'ContributionPage',
           'bao' => 'CRM_Contribute_BAO_ContributionPage',
@@ -541,6 +545,7 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Adjust Recurring Start Date'),
           'description' => 'if true - user is able to adjust payment start date',
+          'default' => '0',
           'table_name' => 'civicrm_contribution_page',
           'entity' => 'ContributionPage',
           'bao' => 'CRM_Contribute_BAO_ContributionPage',
@@ -551,6 +556,7 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Pay Later'),
           'description' => 'if true - allows the user to send payment directly to the org later',
+          'default' => '0',
           'table_name' => 'civicrm_contribution_page',
           'entity' => 'ContributionPage',
           'bao' => 'CRM_Contribute_BAO_ContributionPage',
@@ -581,6 +587,7 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Allow Partial Payment'),
           'description' => 'is partial payment enabled for this online contribution page',
+          'default' => '0',
           'table_name' => 'civicrm_contribution_page',
           'entity' => 'ContributionPage',
           'bao' => 'CRM_Contribute_BAO_ContributionPage',
@@ -627,6 +634,7 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Allow Other Amounts'),
           'description' => 'if true, page will include an input text field where user can enter their own amount',
+          'default' => '0',
           'table_name' => 'civicrm_contribution_page',
           'entity' => 'ContributionPage',
           'bao' => 'CRM_Contribute_BAO_ContributionPage',
@@ -731,6 +739,7 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Send email Receipt'),
           'description' => 'if true, receipt is automatically emailed to contact on success',
+          'default' => '0',
           'table_name' => 'civicrm_contribution_page',
           'entity' => 'ContributionPage',
           'bao' => 'CRM_Contribute_BAO_ContributionPage',
@@ -930,6 +939,7 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is billing block required'),
           'description' => 'if true - billing block is required for online contribution page',
+          'default' => '0',
           'table_name' => 'civicrm_contribution_page',
           'entity' => 'ContributionPage',
           'bao' => 'CRM_Contribute_BAO_ContributionPage',
index 1f1650edad7d25876b316d710fdb804cd535cbaf..c27f63c0044d09fe55981deb525b156eb756a0e3 100644 (file)
@@ -508,6 +508,7 @@ class CRM_Contribute_DAO_ContributionRecur extends CRM_Core_DAO {
           'headerPattern' => '',
           'dataPattern' => '',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_contribution_recur',
           'entity' => 'ContributionRecur',
           'bao' => 'CRM_Contribute_BAO_ContributionRecur',
@@ -549,6 +550,7 @@ class CRM_Contribute_DAO_ContributionRecur extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Number of Failures'),
           'description' => 'Number of failed charge attempts since last success. Business rule could be set to deactivate on more than x failures.',
+          'default' => '0',
           'table_name' => 'civicrm_contribution_recur',
           'entity' => 'ContributionRecur',
           'bao' => 'CRM_Contribute_BAO_ContributionRecur',
@@ -576,6 +578,7 @@ class CRM_Contribute_DAO_ContributionRecur extends CRM_Core_DAO {
           'title' => ts('Auto Renew'),
           'description' => 'Some systems allow contributor to set a number of installments - but then auto-renew the subscription or commitment if they do not cancel.',
           'required' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_contribution_recur',
           'entity' => 'ContributionRecur',
           'bao' => 'CRM_Contribute_BAO_ContributionRecur',
index 977a00bea708ccaf79a4338ff3581bdf020eb303..88c9c47f0017f7472eee5507315b47093bba0319 100644 (file)
@@ -233,6 +233,7 @@ class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO {
           'name' => 'pcp_display_in_roll',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Soft Contribution Display on PCP'),
+          'default' => '0',
           'table_name' => 'civicrm_contribution_soft',
           'entity' => 'ContributionSoft',
           'bao' => 'CRM_Contribute_BAO_ContributionSoft',
index f8981352c93006b0ca3986de1b167f9223387801..9ff1e31b313b464fb0df94d3ae8509cb96e574e4 100644 (file)
@@ -169,6 +169,7 @@ class CRM_Contribute_DAO_Premium extends CRM_Core_DAO {
           'title' => ts('Is Premium Active?'),
           'description' => 'Is the Premiums feature enabled for this page?',
           'required' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_premiums',
           'entity' => 'Premium',
           'bao' => 'CRM_Contribute_BAO_Premium',
index 9c1328102a727c9a82086b2d187bcb9b54a2f159..5799fa61a55d729f04fd110c79040420b6a9040a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/Product.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:81e315b903d403508f379dc9c0fcf532)
+ * (GenCodeChecksum:a66a59f20355ce5773f427b85bd7bf0b)
  */
 
 /**
@@ -196,7 +196,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           'required' => TRUE,
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 0,
         ],
         'product_name' => [
@@ -213,7 +213,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           'dataPattern' => '',
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 1,
         ],
         'description' => [
@@ -223,7 +223,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           'description' => 'Optional description of the product/premium.',
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 1,
         ],
         'sku' => [
@@ -239,7 +239,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           'dataPattern' => '',
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 0,
         ],
         'options' => [
@@ -249,7 +249,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           'description' => 'Store comma-delimited list of color, size, etc. options for the product.',
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 1,
         ],
         'image' => [
@@ -261,7 +261,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           'size' => CRM_Utils_Type::HUGE,
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 0,
         ],
         'thumbnail' => [
@@ -273,7 +273,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           'size' => CRM_Utils_Type::HUGE,
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 0,
         ],
         'price' => [
@@ -287,7 +287,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           ],
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 0,
         ],
         'currency' => [
@@ -300,7 +300,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           'default' => 'NULL',
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 0,
           'html' => [
             'type' => 'Select',
@@ -320,7 +320,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           'default' => 'NULL',
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialType',
           'pseudoconstant' => [
@@ -340,7 +340,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           ],
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 0,
         ],
         'cost' => [
@@ -354,7 +354,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           ],
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 0,
         ],
         'is_active' => [
@@ -365,7 +365,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           'required' => TRUE,
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 0,
         ],
         'period_type' => [
@@ -379,7 +379,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           'default' => 'rolling',
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 0,
           'html' => [
             'type' => 'Select',
@@ -396,7 +396,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           'default' => '0101',
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 0,
         ],
         'duration_unit' => [
@@ -408,7 +408,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           'default' => 'year',
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 0,
           'html' => [
             'type' => 'Select',
@@ -424,7 +424,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           'description' => 'Number of units for total duration of subscription, service, membership (e.g. 12 Months).',
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 0,
         ],
         'frequency_unit' => [
@@ -437,7 +437,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           'default' => 'month',
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 0,
           'html' => [
             'type' => 'Select',
@@ -453,7 +453,7 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO {
           'description' => 'Number of units for delivery frequency of subscription, service, membership (e.g. every 3 Months).',
           'table_name' => 'civicrm_product',
           'entity' => 'Product',
-          'bao' => 'CRM_Contribute_DAO_Product',
+          'bao' => 'CRM_Contribute_BAO_Product',
           'localizable' => 0,
         ],
       ];
index 671e1542f8c7572b4d3827a7759fb46657978093..3958e5ff22f7746ee86b04ac929fe67138d5028b 100644 (file)
@@ -200,6 +200,7 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Error?'),
           'description' => 'Was there any error sending the reminder?',
+          'default' => '0',
           'table_name' => 'civicrm_action_log',
           'entity' => 'ActionLog',
           'bao' => 'CRM_Core_BAO_ActionLog',
index 20d7fde9d3b6ec14baf395a8b8b04f42520cd919..c7ee8457f1adc3bf7caff8d10eeaf4319df77c46 100644 (file)
@@ -407,6 +407,7 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Start Action Offset'),
           'description' => 'Reminder Interval.',
+          'default' => '0',
           'table_name' => 'civicrm_action_schedule',
           'entity' => 'ActionSchedule',
           'bao' => 'CRM_Core_BAO_ActionSchedule',
@@ -458,6 +459,7 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO {
           'name' => 'is_repeat',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Repeat?'),
+          'default' => '0',
           'table_name' => 'civicrm_action_schedule',
           'entity' => 'ActionSchedule',
           'bao' => 'CRM_Core_BAO_ActionSchedule',
@@ -486,6 +488,7 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Repetition Frequency Interval'),
           'description' => 'Time interval for repeating the reminder.',
+          'default' => '0',
           'table_name' => 'civicrm_action_schedule',
           'entity' => 'ActionSchedule',
           'bao' => 'CRM_Core_BAO_ActionSchedule',
@@ -514,6 +517,7 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('End Frequency Interval'),
           'description' => 'Time interval till repeating the reminder.',
+          'default' => '0',
           'table_name' => 'civicrm_action_schedule',
           'entity' => 'ActionSchedule',
           'bao' => 'CRM_Core_BAO_ActionSchedule',
index de15258fbf23a758abd3620459d8febb68a2f14e..877496a9d59f714cb42ec5a9703e8d7211efa1bf 100644 (file)
@@ -311,6 +311,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Address Primary?'),
           'description' => 'Is this the primary address.',
+          'default' => '0',
           'table_name' => 'civicrm_address',
           'entity' => 'Address',
           'bao' => 'CRM_Core_BAO_Address',
@@ -324,6 +325,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Billing Address'),
           'description' => 'Is this the billing address.',
+          'default' => '0',
           'table_name' => 'civicrm_address',
           'entity' => 'Address',
           'bao' => 'CRM_Core_BAO_Address',
@@ -706,6 +708,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is manually geocoded'),
           'description' => 'Is this a manually entered geo code',
+          'default' => '0',
           'table_name' => 'civicrm_address',
           'entity' => 'Address',
           'bao' => 'CRM_Core_BAO_Address',
index 5823935f092fc4e10379665c191116591803dd84..82af44c6856b3bb6afd40458505d7461b3d63f42 100644 (file)
@@ -227,6 +227,7 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Abbreviate Province?'),
           'description' => 'Should state/province be displayed as abbreviation for contacts from this country?',
+          'default' => '0',
           'table_name' => 'civicrm_country',
           'entity' => 'Country',
           'bao' => 'CRM_Core_BAO_Country',
index 24b86133fe260882d83008ba0271b36f1feb0896..fea2e7e4c7df6d3ed5dd65c7b2d4b45f872e2fc8 100644 (file)
@@ -377,6 +377,7 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Custom Field Is Required?'),
           'description' => 'Is a value required for this property.',
+          'default' => '0',
           'table_name' => 'civicrm_custom_field',
           'entity' => 'CustomField',
           'bao' => 'CRM_Core_BAO_CustomField',
@@ -387,6 +388,7 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Allow Searching on Field?'),
           'description' => 'Is this property searchable.',
+          'default' => '0',
           'table_name' => 'civicrm_custom_field',
           'entity' => 'CustomField',
           'bao' => 'CRM_Core_BAO_CustomField',
@@ -397,6 +399,7 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Search as a Range'),
           'description' => 'Is this property range searchable.',
+          'default' => '0',
           'table_name' => 'civicrm_custom_field',
           'entity' => 'CustomField',
           'bao' => 'CRM_Core_BAO_CustomField',
@@ -486,6 +489,7 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Field is Viewable'),
           'description' => 'Is this property set by PHP Code? A code field is viewable but not editable',
+          'default' => '0',
           'table_name' => 'civicrm_custom_field',
           'entity' => 'CustomField',
           'bao' => 'CRM_Core_BAO_CustomField',
@@ -617,6 +621,7 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Field Display'),
           'description' => 'Should the multi-record custom field values be displayed in tab table listing',
+          'default' => '0',
           'table_name' => 'civicrm_custom_field',
           'entity' => 'CustomField',
           'bao' => 'CRM_Core_BAO_CustomField',
index 93d82140553e3dd3207fc9a3e87752bb8ec6546a..9e014563bc5a985c4edc7c7e51bb2ecdbc535500 100644 (file)
@@ -309,6 +309,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Collapse Custom Group?'),
           'description' => 'Will this group be in collapsed or expanded mode on initial display ?',
+          'default' => '0',
           'table_name' => 'civicrm_custom_group',
           'entity' => 'CustomGroup',
           'bao' => 'CRM_Core_BAO_CustomGroup',
@@ -384,6 +385,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Supports Multiple Records'),
           'description' => 'Does this group hold multiple values?',
+          'default' => '0',
           'table_name' => 'civicrm_custom_group',
           'entity' => 'CustomGroup',
           'bao' => 'CRM_Core_BAO_CustomGroup',
@@ -414,6 +416,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Collapse Group Display'),
           'description' => 'Will this group be in collapsed or expanded mode on advanced search display ?',
+          'default' => '0',
           'table_name' => 'civicrm_custom_group',
           'entity' => 'CustomGroup',
           'bao' => 'CRM_Core_BAO_CustomGroup',
@@ -445,6 +448,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Reserved Group?'),
           'description' => 'Is this a reserved Custom Group?',
+          'default' => '0',
           'table_name' => 'civicrm_custom_group',
           'entity' => 'CustomGroup',
           'bao' => 'CRM_Core_BAO_CustomGroup',
index 3974eab19e40d3595328a08a19f7b5592b7f3c1e..634e0f34124f9989b5c08af4ecccb57bccca1676 100644 (file)
@@ -238,6 +238,7 @@ class CRM_Core_DAO_Dashboard extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Dashlet Active?'),
           'description' => 'Is this dashlet active?',
+          'default' => '0',
           'table_name' => 'civicrm_dashboard',
           'entity' => 'Dashboard',
           'bao' => 'CRM_Core_BAO_Dashboard',
@@ -248,6 +249,7 @@ class CRM_Core_DAO_Dashboard extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Dashlet Reserved?'),
           'description' => 'Is this dashlet reserved?',
+          'default' => '0',
           'table_name' => 'civicrm_dashboard',
           'entity' => 'Dashboard',
           'bao' => 'CRM_Core_BAO_Dashboard',
index 7abc05f434d1eb33d0c22641a7f4f6e593a6b0d9..9d7d24eba260e144da44d12bbb4309c4938c4bd7 100644 (file)
@@ -209,6 +209,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Primary email'),
           'description' => 'Is this the primary?',
+          'default' => '0',
           'table_name' => 'civicrm_email',
           'entity' => 'Email',
           'bao' => 'CRM_Core_BAO_Email',
@@ -219,6 +220,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Billing Email?'),
           'description' => 'Is this the billing?',
+          'default' => '0',
           'table_name' => 'civicrm_email',
           'entity' => 'Email',
           'bao' => 'CRM_Core_BAO_Email',
@@ -234,6 +236,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
           'where' => 'civicrm_email.on_hold',
           'headerPattern' => '',
           'dataPattern' => '',
+          'default' => '0',
           'table_name' => 'civicrm_email',
           'entity' => 'Email',
           'bao' => 'CRM_Core_BAO_Email',
@@ -252,6 +255,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO {
           'where' => 'civicrm_email.is_bulkmail',
           'headerPattern' => '',
           'dataPattern' => '',
+          'default' => '0',
           'table_name' => 'civicrm_email',
           'entity' => 'Email',
           'bao' => 'CRM_Core_BAO_Email',
index dcdf67f176d88b5270a2f140e9dd4f99ffcc5ae1..35a1b01d9eb39f224f9070a3f3346f06a6bd1b07 100644 (file)
@@ -190,6 +190,7 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is IM Primary?'),
           'description' => 'Is this the primary IM for this contact and location.',
+          'default' => '0',
           'table_name' => 'civicrm_im',
           'entity' => 'IM',
           'bao' => 'CRM_Core_BAO_IM',
@@ -200,6 +201,7 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is IM Billing?'),
           'description' => 'Is this the billing?',
+          'default' => '0',
           'table_name' => 'civicrm_im',
           'entity' => 'IM',
           'bao' => 'CRM_Core_BAO_IM',
index 93d2b0ec7ec3c55dcc5cd78689b601a5f737b31c..90beadc0aac7d9433d9843a84df6362cde8913b4 100644 (file)
@@ -224,6 +224,7 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Message Template is used for SMS?'),
           'description' => 'Is this message template used for sms?',
+          'default' => '0',
           'table_name' => 'civicrm_msg_template',
           'entity' => 'MessageTemplate',
           'bao' => 'CRM_Core_BAO_MessageTemplate',
index 90569e58f06923a2295c4503919ce202bde6ed9e..0033e3f37e27ade2aa238bc61f6326b9c74697d7 100644 (file)
@@ -157,6 +157,7 @@ class CRM_Core_DAO_OpenID extends CRM_Core_DAO {
           'title' => ts('Allowed to login?'),
           'description' => 'Whether or not this user is allowed to login',
           'required' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_openid',
           'entity' => 'OpenID',
           'bao' => 'CRM_Core_BAO_OpenID',
@@ -167,6 +168,7 @@ class CRM_Core_DAO_OpenID extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is OpenID Primary?'),
           'description' => 'Is this the primary email for this contact and location.',
+          'default' => '0',
           'table_name' => 'civicrm_openid',
           'entity' => 'OpenID',
           'bao' => 'CRM_Core_BAO_OpenID',
index 956b0104e0dab32aa85e5dac9a3e263e2f9a3aa6..3f470ce1a5e3d55f61d1fc925942ccccf298b743 100644 (file)
@@ -193,6 +193,7 @@ class CRM_Core_DAO_OptionGroup extends CRM_Core_DAO {
           'title' => ts('Option Group Is Locked'),
           'description' => 'A lock to remove the ability to add new options via the UI.',
           'required' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_option_group',
           'entity' => 'OptionGroup',
           'bao' => 'CRM_Core_BAO_OptionGroup',
index 1875c7521312e24b5942404f12628c997a3cbc9c..dbf7059bb18280c8f0e52c33975fbf350fc376fc 100644 (file)
@@ -286,6 +286,7 @@ class CRM_Core_DAO_OptionValue extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Option is Default?'),
           'description' => 'Is this the default option for the group?',
+          'default' => '0',
           'table_name' => 'civicrm_option_value',
           'entity' => 'OptionValue',
           'bao' => 'CRM_Core_BAO_OptionValue',
@@ -322,6 +323,7 @@ class CRM_Core_DAO_OptionValue extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Option is Header?'),
           'description' => 'Is this row simply a display header? Expected usage is to render these as OPTGROUP tags within a SELECT field list of options?',
+          'default' => '0',
           'table_name' => 'civicrm_option_value',
           'entity' => 'OptionValue',
           'bao' => 'CRM_Core_BAO_OptionValue',
@@ -332,6 +334,7 @@ class CRM_Core_DAO_OptionValue extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Option Is Reserved?'),
           'description' => 'Is this a predefined system object?',
+          'default' => '0',
           'table_name' => 'civicrm_option_value',
           'entity' => 'OptionValue',
           'bao' => 'CRM_Core_BAO_OptionValue',
index b6cdf47d6d46edada2895688dd04b8305ed4fa33..43954d583fa32521607331005cd80e70badca213 100644 (file)
@@ -132,6 +132,7 @@ class CRM_Core_DAO_Persistent extends CRM_Core_DAO {
           'title' => ts('Is Configuration?'),
           'description' => 'Config Settings',
           'required' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_persistent',
           'entity' => 'Persistent',
           'bao' => 'CRM_Core_BAO_Persistent',
index 013b416c940596d29224a4a594dd486785291805..034f0d54af1eedefd73245e9b5aec7dd4dd963a7 100644 (file)
@@ -174,6 +174,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Phone Primary?'),
           'description' => 'Is this the primary phone for this contact and location.',
+          'default' => '0',
           'table_name' => 'civicrm_phone',
           'entity' => 'Phone',
           'bao' => 'CRM_Core_BAO_Phone',
@@ -184,6 +185,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Billing Phone'),
           'description' => 'Is this the billing?',
+          'default' => '0',
           'table_name' => 'civicrm_phone',
           'entity' => 'Phone',
           'bao' => 'CRM_Core_BAO_Phone',
index 26a8d9196069417d0150eefa5860b143dc29f433..bc01e75e1c94aa855dd6001fdc924ce627906786 100644 (file)
@@ -160,6 +160,7 @@ class CRM_Core_DAO_PrevNextCache extends CRM_Core_DAO {
           'name' => 'is_selected',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Selected'),
+          'default' => '0',
           'table_name' => 'civicrm_prevnext_cache',
           'entity' => 'PrevNextCache',
           'bao' => 'CRM_Core_BAO_PrevNextCache',
index df103628dad0611ecbc682594389cd188d960440..14160e2496ff18a8d748c03192dd33ab5411ea9f 100644 (file)
@@ -194,6 +194,7 @@ class CRM_Core_DAO_Tag extends CRM_Core_DAO {
           'name' => 'is_reserved',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Reserved'),
+          'default' => '0',
           'table_name' => 'civicrm_tag',
           'entity' => 'Tag',
           'bao' => 'CRM_Core_BAO_Tag',
@@ -203,6 +204,7 @@ class CRM_Core_DAO_Tag extends CRM_Core_DAO {
           'name' => 'is_tagset',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Tagset'),
+          'default' => '0',
           'table_name' => 'civicrm_tag',
           'entity' => 'Tag',
           'bao' => 'CRM_Core_BAO_Tag',
index bd5a61dab55b74c64325cd439f7650c9ba4b81cc..b560e442ed366c1f5a8e9d53b71d1d9a25a44130 100644 (file)
@@ -253,6 +253,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Profile Is View Only'),
           'description' => 'the field is view only and not editable in user forms.',
+          'default' => '0',
           'table_name' => 'civicrm_uf_field',
           'entity' => 'UFField',
           'bao' => 'CRM_Core_BAO_UFField',
@@ -263,6 +264,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Profile Field Is Required'),
           'description' => 'Is this field required when included in a user or registration form?',
+          'default' => '0',
           'table_name' => 'civicrm_uf_field',
           'entity' => 'UFField',
           'bao' => 'CRM_Core_BAO_UFField',
@@ -324,6 +326,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Profile Field Is a Filter'),
           'description' => 'Is this field included as a column in the selector table?',
+          'default' => '0',
           'table_name' => 'civicrm_uf_field',
           'entity' => 'UFField',
           'bao' => 'CRM_Core_BAO_UFField',
@@ -334,6 +337,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Profile Field Is Searchable'),
           'description' => 'Is this field included search form of profile?',
+          'default' => '0',
           'table_name' => 'civicrm_uf_field',
           'entity' => 'UFField',
           'bao' => 'CRM_Core_BAO_UFField',
@@ -410,6 +414,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Profile Field Supports Multiple'),
           'description' => 'Include in multi-record listing?',
+          'default' => '0',
           'table_name' => 'civicrm_uf_field',
           'entity' => 'UFField',
           'bao' => 'CRM_Core_BAO_UFField',
index 53e1c18927dff6a9e826239e64fa5bfcb2a3056f..6605de613caac1533bdcb758dc10a628ed2bd542 100644 (file)
@@ -397,6 +397,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Show Captcha On Profile'),
           'description' => 'Should a CAPTCHA widget be included this Profile form.',
+          'default' => '0',
           'table_name' => 'civicrm_uf_group',
           'entity' => 'UFGroup',
           'bao' => 'CRM_Core_BAO_UFGroup',
@@ -407,6 +408,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Map Profile'),
           'description' => 'Do we want to map results from this profile.',
+          'default' => '0',
           'table_name' => 'civicrm_uf_group',
           'entity' => 'UFGroup',
           'bao' => 'CRM_Core_BAO_UFGroup',
@@ -417,6 +419,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Show Edit Link?'),
           'description' => 'Should edit link display in profile selector',
+          'default' => '0',
           'table_name' => 'civicrm_uf_group',
           'entity' => 'UFGroup',
           'bao' => 'CRM_Core_BAO_UFGroup',
@@ -427,6 +430,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Show Link to CMS User'),
           'description' => 'Should we display a link to the website profile in profile selector',
+          'default' => '0',
           'table_name' => 'civicrm_uf_group',
           'entity' => 'UFGroup',
           'bao' => 'CRM_Core_BAO_UFGroup',
@@ -437,6 +441,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Update on Duplicate'),
           'description' => 'Should we update the contact record if we find a duplicate',
+          'default' => '0',
           'table_name' => 'civicrm_uf_group',
           'entity' => 'UFGroup',
           'bao' => 'CRM_Core_BAO_UFGroup',
@@ -459,6 +464,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Create CMS User?'),
           'description' => 'Should we create a cms user for this profile ',
+          'default' => '0',
           'table_name' => 'civicrm_uf_group',
           'entity' => 'UFGroup',
           'bao' => 'CRM_Core_BAO_UFGroup',
@@ -521,6 +527,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Include Proximity Search?'),
           'description' => 'Should we include proximity search feature in this profile search form?',
+          'default' => '0',
           'table_name' => 'civicrm_uf_group',
           'entity' => 'UFGroup',
           'bao' => 'CRM_Core_BAO_UFGroup',
index a5c2202e5200fe1faa7180471d3e02e5dbf859d1..6bb14e6c2e9a8cad769f996bdc35f8faa18ad9ae 100644 (file)
@@ -104,6 +104,7 @@ class CRM_Event_Cart_DAO_Cart extends CRM_Core_DAO {
           'name' => 'completed',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Complete?'),
+          'default' => '0',
           'table_name' => 'civicrm_event_carts',
           'entity' => 'Cart',
           'bao' => 'CRM_Event_Cart_BAO_Cart',
index caa4b866f95feed0959945b451176cbdde7cd330..1f13607d0cf2fa5216343761f27206f07456b90b 100644 (file)
@@ -609,6 +609,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Event Type'),
           'description' => 'Event Type ID.Implicit FK to civicrm_option_value where option_group = event_type.',
+          'default' => '0',
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -626,6 +627,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Participant Listing'),
           'description' => 'Should we expose the participant list? Implicit FK to civicrm_option_value where option_group = participant_listing.',
+          'default' => '0',
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -693,6 +695,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Online Registration'),
           'description' => 'If true, include registration link on Event Info page.',
+          'default' => '0',
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -776,6 +779,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is this a PAID event?'),
           'description' => 'If true, one or more fee amounts must be set and a Payment Processor must be configured for Online Event Registration.',
+          'default' => '0',
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -828,6 +832,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Map Enabled'),
           'description' => 'Include a map block on the Event Information page when geocode info is available and a mapping provider has been specified?',
+          'default' => '0',
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -841,6 +846,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Active'),
           'description' => 'Is this Event enabled or disabled/cancelled?',
+          'default' => '0',
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -997,6 +1003,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is confirm email'),
           'description' => 'If true, confirmation is automatically emailed to contact on successful registration.',
+          'default' => '0',
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -1151,6 +1158,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Pay Later Allowed'),
           'description' => 'if true - allows the user to send payment directly to the org later',
+          'default' => '0',
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -1190,6 +1198,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Partial Payments Enabled'),
           'description' => 'is partial payment enabled for this event',
+          'default' => '0',
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -1248,6 +1257,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Allow Multiple Registrations'),
           'description' => 'if true - allows the user to register multiple participants for event',
+          'default' => '0',
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -1261,6 +1271,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Maximum number of additional participants per registration'),
           'description' => 'Maximum number of additional participants that can be registered on a single booking',
+          'default' => '0',
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -1271,6 +1282,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Does Event allow multiple registrations from same email address?'),
           'description' => 'if true - allows the user to register multiple registrations from same email address.',
+          'default' => '0',
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -1323,6 +1335,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Allow Self-service Cancellation or Transfer'),
           'description' => 'Allow self service cancellation or transfer for event?',
+          'default' => '0',
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -1336,6 +1349,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Self-service Cancellation or Transfer Time'),
           'description' => 'Number of hours prior to event start date to allow self-service cancellation or transfer.',
+          'default' => '0',
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -1380,6 +1394,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'title' => ts('Is an Event Template'),
           'description' => 'whether the event has template',
           'required' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
@@ -1556,6 +1571,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is billing block required'),
           'description' => 'if true than billing block is required this event',
+          'default' => '0',
           'table_name' => 'civicrm_event',
           'entity' => 'Event',
           'bao' => 'CRM_Event_BAO_Event',
index a25c71bb8259d9b70a5378d3e5002c11eed989fe..941d0eff23dce5966efe42a6aaabab9008346d3e 100644 (file)
@@ -364,6 +364,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'headerPattern' => '',
           'dataPattern' => '',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_participant',
           'entity' => 'Participant',
           'bao' => 'CRM_Event_BAO_Participant',
@@ -378,6 +379,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'headerPattern' => '/(is.)?(pay(.)?later)$/i',
           'dataPattern' => '',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_participant',
           'entity' => 'Participant',
           'bao' => 'CRM_Event_BAO_Participant',
index 4d7f073092b74d2bddc06cb5b560022ccbccb4f5..f2ab3fff119d5993cb20834b6dab7b750cffbdcb 100644 (file)
@@ -279,6 +279,7 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Header Financial Account?'),
           'description' => 'Is this a header account which does not allow transactions to be posted against it directly, but only to its sub-accounts?',
+          'default' => '0',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
@@ -300,6 +301,7 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Tax Financial Account?'),
           'description' => 'Is this account for taxes?',
+          'default' => '0',
           'table_name' => 'civicrm_financial_account',
           'entity' => 'FinancialAccount',
           'bao' => 'CRM_Financial_BAO_FinancialAccount',
index 480b78afdcafe462c2012be27cbb88cb255248d2..7cfd9b651eb19c0cc69fa43a6b539bacf86602e7 100644 (file)
@@ -207,6 +207,7 @@ class CRM_Financial_DAO_FinancialItem extends CRM_Core_DAO {
             20,
             2
           ],
+          'default' => '0',
           'table_name' => 'civicrm_financial_item',
           'entity' => 'FinancialItem',
           'bao' => 'CRM_Financial_BAO_FinancialItem',
index 6ac9060720c923806ed7dce7a15ccec4012f0f55..bf194318976b9a2dfbd79772b599c0038a5c0e23 100644 (file)
@@ -321,6 +321,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'headerPattern' => '',
           'dataPattern' => '',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_financial_trxn',
           'entity' => 'FinancialTrxn',
           'bao' => 'CRM_Financial_DAO_FinancialTrxn',
index d0c861594b640c4389bc51431c12aae9e6165a56..38aef9f12aea3ffd2120344fe59b57e9307d8738 100644 (file)
@@ -182,6 +182,7 @@ class CRM_Mailing_DAO_Component extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Mailing Component is Default?'),
           'description' => 'Is this the default component for this component_type?',
+          'default' => '0',
           'table_name' => 'civicrm_mailing_component',
           'entity' => 'Component',
           'bao' => 'CRM_Mailing_BAO_Component',
index aafeb0090d3618317f75eb2f655ea5c18c9e4cde..286256a503b2f5a217e43827ce30b7c502693d9b 100644 (file)
@@ -674,6 +674,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Override Verp'),
           'description' => 'Should we overrite VERP address in Reply-To',
+          'default' => '0',
           'table_name' => 'civicrm_mailing',
           'entity' => 'Mailing',
           'bao' => 'CRM_Mailing_BAO_Mailing',
@@ -814,6 +815,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Mailing Archived?'),
           'description' => 'Is this mailing archived?',
+          'default' => '0',
           'table_name' => 'civicrm_mailing',
           'entity' => 'Mailing',
           'bao' => 'CRM_Mailing_BAO_Mailing',
@@ -865,6 +867,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('No Duplicate emails?'),
           'description' => 'Remove duplicate emails?',
+          'default' => '0',
           'table_name' => 'civicrm_mailing',
           'entity' => 'Mailing',
           'bao' => 'CRM_Mailing_BAO_Mailing',
index 93cd68194865f737a7a13bb507b1196a42ee5ee4..931685895fdc0c6b901021df8319a958804eb3e4 100644 (file)
@@ -216,6 +216,7 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Mailing Job Is Test?'),
           'description' => 'Is this job for a test mail?',
+          'default' => '0',
           'table_name' => 'civicrm_mailing_job',
           'entity' => 'MailingJob',
           'bao' => 'CRM_Mailing_BAO_MailingJob',
@@ -250,6 +251,7 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Mailing Job Offset'),
           'description' => 'Offset of the child job',
+          'default' => '0',
           'table_name' => 'civicrm_mailing_job',
           'entity' => 'MailingJob',
           'bao' => 'CRM_Mailing_BAO_MailingJob',
@@ -260,6 +262,7 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Mailing Job Limit'),
           'description' => 'Queue size limit for each child job',
+          'default' => '0',
           'table_name' => 'civicrm_mailing_job',
           'entity' => 'MailingJob',
           'bao' => 'CRM_Mailing_BAO_MailingJob',
index 969b243937fab433a6a62c3bf96285b8d204908b..136cc97aca08b5a74e5dd805640ae07f0443ea9c 100644 (file)
@@ -406,6 +406,7 @@ class CRM_Member_DAO_Membership extends CRM_Core_DAO {
           'headerPattern' => '/(is.)?test(.member(ship)?)?/i',
           'dataPattern' => '',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_membership',
           'entity' => 'Membership',
           'bao' => 'CRM_Member_BAO_Membership',
@@ -423,6 +424,7 @@ class CRM_Member_DAO_Membership extends CRM_Core_DAO {
           'headerPattern' => '/(is.)?(pay(.)?later)$/i',
           'dataPattern' => '',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_membership',
           'entity' => 'Membership',
           'bao' => 'CRM_Member_BAO_Membership',
index cba09a6af55a9f7ac2c720c74993a3fcde20f7b4..118a8ff425145bbe233a1bc3b27a5a5f7c06caeb 100644 (file)
@@ -281,6 +281,7 @@ class CRM_Member_DAO_MembershipBlock extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Required'),
           'description' => 'Is membership sign up optional',
+          'default' => '0',
           'table_name' => 'civicrm_membership_block',
           'entity' => 'MembershipBlock',
           'bao' => 'CRM_Member_BAO_MembershipBlock',
index e38b1559339c5d47050f169c7a6355e7785ffe28..4df669ce82c9453e57f21b69feefec3315e05d31 100644 (file)
@@ -346,6 +346,7 @@ class CRM_Member_DAO_MembershipStatus extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Reserved'),
           'description' => 'Is this membership_status reserved.',
+          'default' => '0',
           'table_name' => 'civicrm_membership_status',
           'entity' => 'MembershipStatus',
           'bao' => 'CRM_Member_BAO_MembershipStatus',
index a5469039bf7129187dd7da5da6c7dac4b4fa8e75..8b7301f8194de737cedff2c0c9a6797d001b4a91 100644 (file)
@@ -305,6 +305,7 @@ class CRM_Member_DAO_MembershipType extends CRM_Core_DAO {
             18,
             9
           ],
+          'default' => '0',
           'table_name' => 'civicrm_membership_type',
           'entity' => 'MembershipType',
           'bao' => 'CRM_Member_BAO_MembershipType',
@@ -484,6 +485,7 @@ class CRM_Member_DAO_MembershipType extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Auto Renew'),
           'description' => '0 = No auto-renew option; 1 = Give option, but not required; 2 = Auto-renew required;',
+          'default' => '0',
           'table_name' => 'civicrm_membership_type',
           'entity' => 'MembershipType',
           'bao' => 'CRM_Member_BAO_MembershipType',
index 09371761b8bfb2cfe034c88164a7c45cc133bfe5..72a9d6eb0cb1eec35677e46a7de451a2192a2bb3 100644 (file)
@@ -298,6 +298,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO {
           'name' => 'is_thermometer',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Use Thermometer?'),
+          'default' => '0',
           'table_name' => 'civicrm_pcp',
           'entity' => 'PCP',
           'bao' => 'CRM_PCP_BAO_PCP',
@@ -310,6 +311,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO {
           'name' => 'is_honor_roll',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Show Honor Roll?'),
+          'default' => '0',
           'table_name' => 'civicrm_pcp',
           'entity' => 'PCP',
           'bao' => 'CRM_PCP_BAO_PCP',
@@ -362,6 +364,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Enabled?'),
           'description' => 'Is Personal Campaign Page enabled/active?',
+          'default' => '0',
           'table_name' => 'civicrm_pcp',
           'entity' => 'PCP',
           'bao' => 'CRM_PCP_BAO_PCP',
@@ -375,6 +378,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Notify Owner?'),
           'description' => 'Notify owner via email when someone donates to page?',
+          'default' => '0',
           'table_name' => 'civicrm_pcp',
           'entity' => 'PCP',
           'bao' => 'CRM_PCP_BAO_PCP',
index c1f007d56403e3232fec8fcdcc426b9232823928..37fcaeb0d7653355cda690668fe412b64efcefb5 100644 (file)
@@ -225,6 +225,7 @@ class CRM_PCP_DAO_PCPBlock extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Owner Notification'),
           'description' => 'FK to civicrm_option_group with name = PCP owner notifications',
+          'default' => '0',
           'table_name' => 'civicrm_pcp_block',
           'entity' => 'PCPBlock',
           'bao' => 'CRM_PCP_BAO_PCPBlock',
index 21d857a3d9f9c5ecc487036ee20f4614a8f0bcdd..bfe1c096128259ad903eb0029eb79be3d470b280 100644 (file)
@@ -575,6 +575,7 @@ class CRM_Pledge_DAO_Pledge extends CRM_Core_DAO {
           'headerPattern' => '',
           'dataPattern' => '',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_pledge',
           'entity' => 'Pledge',
           'bao' => 'CRM_Pledge_BAO_Pledge',
index 19ee593688d03517fc2f87a6a4f3a25959fa5391..1efdbf69aca98731a1b825ebd307e2b9e7eb5e3e 100644 (file)
@@ -188,6 +188,7 @@ class CRM_Pledge_DAO_PledgeBlock extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Expose Frequency Interval?'),
           'description' => 'Is frequency interval exposed on the contribution form.',
+          'default' => '0',
           'table_name' => 'civicrm_pledge_block',
           'entity' => 'PledgeBlock',
           'bao' => 'CRM_Pledge_BAO_PledgeBlock',
@@ -244,6 +245,7 @@ class CRM_Pledge_DAO_PledgeBlock extends CRM_Core_DAO {
           'title' => ts('Show Recurring Donation Start Date?'),
           'description' => 'If true - recurring start date is shown.',
           'required' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_pledge_block',
           'entity' => 'PledgeBlock',
           'bao' => 'CRM_Pledge_BAO_PledgeBlock',
@@ -255,6 +257,7 @@ class CRM_Pledge_DAO_PledgeBlock extends CRM_Core_DAO {
           'title' => ts('Allow Edits to Recurring Donation Start Date?'),
           'description' => 'If true - recurring start date is editable.',
           'required' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_pledge_block',
           'entity' => 'PledgeBlock',
           'bao' => 'CRM_Pledge_BAO_PledgeBlock',
index d3f05e4656b9844cdc5326e5d1df7af97f43b4fb..3a996ff0ed450903af7ff8a09c234142190fe25d 100644 (file)
@@ -266,6 +266,7 @@ class CRM_Pledge_DAO_PledgePayment extends CRM_Core_DAO {
           'headerPattern' => '',
           'dataPattern' => '',
           'export' => TRUE,
+          'default' => '0',
           'table_name' => 'civicrm_pledge_payment',
           'entity' => 'PledgePayment',
           'bao' => 'CRM_Pledge_BAO_PledgePayment',
index 9cfe9768066ece4fd7b0f413496214288e5c103b..aeaf386e72e73c2231c31a9bd2f91b1753aee6a4 100644 (file)
@@ -254,6 +254,7 @@ class CRM_Price_DAO_PriceField extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Price Field Quantity Required?'),
           'description' => 'Enter a quantity for this field?',
+          'default' => '0',
           'table_name' => 'civicrm_price_field',
           'entity' => 'PriceField',
           'bao' => 'CRM_Price_BAO_PriceField',
index e656e0ed28e5ed0e691b60b3cdc9cd87067b001d..f07a16e344e48e27ff6305e604f0d24f9da405a6 100644 (file)
@@ -382,6 +382,7 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Default Price Field Option?'),
           'description' => 'Is this default price field option',
+          'default' => '0',
           'table_name' => 'civicrm_price_field_value',
           'entity' => 'PriceFieldValue',
           'bao' => 'CRM_Price_BAO_PriceFieldValue',
index 3abf87d17f27c56f032b8a09c5c037fb262748d7..cd26b23f7773ee5ed6a3438129ba0140228317aa 100644 (file)
@@ -318,6 +318,7 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Price Set Quick Config?'),
           'description' => 'Is set if edited on Contribution or Event Page rather than through Manage Price Sets',
+          'default' => '0',
           'table_name' => 'civicrm_price_set',
           'entity' => 'PriceSet',
           'bao' => 'CRM_Price_BAO_PriceSet',
@@ -331,6 +332,7 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Price Set Is Reserved'),
           'description' => 'Is this a predefined system price set  (i.e. it can not be deleted, edited)?',
+          'default' => '0',
           'table_name' => 'civicrm_price_set',
           'entity' => 'PriceSet',
           'bao' => 'CRM_Price_BAO_PriceSet',
@@ -344,6 +346,7 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Minimum Amount'),
           'description' => 'Minimum Amount required for this set.',
+          'default' => '0',
           'table_name' => 'civicrm_price_set',
           'entity' => 'PriceSet',
           'bao' => 'CRM_Price_BAO_PriceSet',
index 4effadcc03dbcfc620a1e30c4b1574ae89ac66f1..141e6f6312c80317e18fd508599981bf8a7a4679 100644 (file)
@@ -500,6 +500,7 @@ class CRM_Report_DAO_ReportInstance extends CRM_Core_DAO {
           'name' => 'is_reserved',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Instance is Reserved'),
+          'default' => '0',
           'table_name' => 'civicrm_report_instance',
           'entity' => 'ReportInstance',
           'bao' => 'CRM_Report_BAO_ReportInstance',
index 990f58c84eaaec82da41a684585d58aa8ca25f2e..fc295eef0d5923720b97f5b86d82e0ac827b6ac0 100644 (file)
@@ -237,6 +237,7 @@ class CRM_SMS_DAO_Provider extends CRM_Core_DAO {
           'name' => 'is_default',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('SMS Provider is Default?'),
+          'default' => '0',
           'table_name' => 'civicrm_sms_provider',
           'entity' => 'Provider',
           'bao' => 'CRM_SMS_BAO_Provider',
@@ -249,6 +250,7 @@ class CRM_SMS_DAO_Provider extends CRM_Core_DAO {
           'name' => 'is_active',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('SMS Provider is Active?'),
+          'default' => '0',
           'table_name' => 'civicrm_sms_provider',
           'entity' => 'Provider',
           'bao' => 'CRM_SMS_BAO_Provider',
index 9c39ce74086c00c4ac8d26f9fdcdc19e5c25d1f0..9e4c4f4c5960a54ed79acfbf5a4de8de33ac791f 100644 (file)
@@ -131,7 +131,7 @@ class {$table.className} extends CRM_Core_DAO {ldelim}
 {if $field.rule}
                       'rule'      => '{$field.rule}',
 {/if} {* field.rule *}
-{if $field.default}
+{if $field.default || $field.default === '0'}
                          'default'   => '{if ($field.default[0]=="'" or $field.default[0]=='"')}{$field.default|substring:1:-1}{else}{$field.default}{/if}',
 {/if} {* field.default *}
   'table_name' => '{$table.name}',