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

index 4753ed7599afb4fd6e4eb80ffd449901689d020e..0d611080f08de6b7de56554e855446a92d650a45 100644 (file)
@@ -10,7 +10,6 @@ return CRM_Core_CodeGen_SqlData::create('civicrm_location_type')
       'display_name' => ts('Home'),
       'vcard_name' => 'HOME',
       'description' => ts('Place of residence'),
-      'is_reserved' => 0,
       'is_default' => 1,
     ],
     [
@@ -18,21 +17,18 @@ return CRM_Core_CodeGen_SqlData::create('civicrm_location_type')
       'display_name' => ts('Work'),
       'vcard_name' => 'WORK',
       'description' => ts('Work location'),
-      'is_reserved' => 0,
     ],
     [
       'name' => ts('Main'),
       'display_name' => ts('Main'),
       'vcard_name' => NULL,
       'description' => ts('Main office location'),
-      'is_reserved' => 0,
     ],
     [
       'name' => ts('Other'),
       'display_name' => ts('Other'),
       'vcard_name' => NULL,
       'description' => ts('Other location'),
-      'is_reserved' => 0,
     ],
     // -- the following location must stay with the untranslated Billing name, CRM-2064
     [
@@ -46,5 +42,6 @@ return CRM_Core_CodeGen_SqlData::create('civicrm_location_type')
   ->addDefaults([
     'is_active' => 1,
     'is_default' => NULL,
+    'is_reserved' => 0,
     // FIXME: Doesn't 0 make more sense than NULL?
   ]);