(REF) Simplify civicrm_tag.sqldata.php
authorTim Otten <totten@civicrm.org>
Wed, 28 Jun 2023 00:00:31 +0000 (17:00 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 28 Jun 2023 00:00:31 +0000 (17:00 -0700)
sql/civicrm_data/civicrm_tag.sqldata.php

index ad638610b3bccef28f53ad0f588fe813f9c95371..974fba7f4f4b73414051179e6d2ab630391bab58 100644 (file)
@@ -1,34 +1,28 @@
 <?php
 return CRM_Core_CodeGen_SqlData::create('civicrm_tag')
+  ->addDefaults([
+    'parent_id' => NULL,
+    'used_for' => 'civicrm_contact',
+  ])
   ->addValues([
     [
       'name' => ts('Non-profit'),
       'description' => ts('Any not-for-profit organization.'),
-      'parent_id' => NULL,
-      'used_for' => 'civicrm_contact',
     ],
     [
       'name' => ts('Company'),
       'description' => ts('For-profit organization.'),
-      'parent_id' => NULL,
-      'used_for' => 'civicrm_contact',
     ],
     [
       'name' => ts('Government Entity'),
       'description' => ts('Any governmental entity.'),
-      'parent_id' => NULL,
-      'used_for' => 'civicrm_contact',
     ],
     [
       'name' => ts('Major Donor'),
       'description' => ts('High-value supporter of our organization.'),
-      'parent_id' => NULL,
-      'used_for' => 'civicrm_contact',
     ],
     [
       'name' => ts('Volunteer'),
       'description' => ts('Active volunteers.'),
-      'parent_id' => NULL,
-      'used_for' => 'civicrm_contact',
     ],
   ]);