From 14de0d6107133eebbfdaf45e5f32feabf865c6e3 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 27 Jun 2023 17:00:24 -0700 Subject: [PATCH] (REF) Simplify civicrm_membership_status.sqldata.php --- .../civicrm_membership_status.sqldata.php | 24 ++++--------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/sql/civicrm_data/civicrm_membership_status.sqldata.php b/sql/civicrm_data/civicrm_membership_status.sqldata.php index 22e7431edb..ba555a2cb8 100644 --- a/sql/civicrm_data/civicrm_membership_status.sqldata.php +++ b/sql/civicrm_data/civicrm_membership_status.sqldata.php @@ -1,6 +1,11 @@ addDefaults([ + 'is_active' => 1, + 'is_default' => 0, + 'is_admin' => 0, + ]) ->addValues([ [ 'name' => 'New', @@ -12,10 +17,7 @@ return CRM_Core_CodeGen_SqlData::create('civicrm_membership_status') 'end_event_adjust_unit' => 'month', 'end_event_adjust_interval' => 3, 'is_current_member' => 1, - 'is_admin' => 0, 'weight' => 1, - 'is_default' => 0, - 'is_active' => 1, 'is_reserved' => 0, ], [ @@ -28,10 +30,8 @@ return CRM_Core_CodeGen_SqlData::create('civicrm_membership_status') 'end_event_adjust_unit' => NULL, 'end_event_adjust_interval' => NULL, 'is_current_member' => 1, - 'is_admin' => 0, 'weight' => 2, 'is_default' => 1, - 'is_active' => 1, 'is_reserved' => 0, ], [ @@ -44,10 +44,7 @@ return CRM_Core_CodeGen_SqlData::create('civicrm_membership_status') 'end_event_adjust_unit' => 'month', 'end_event_adjust_interval' => 1, 'is_current_member' => 1, - 'is_admin' => 0, 'weight' => 3, - 'is_default' => 0, - 'is_active' => 1, 'is_reserved' => 0, ], [ @@ -60,10 +57,7 @@ return CRM_Core_CodeGen_SqlData::create('civicrm_membership_status') 'end_event_adjust_unit' => NULL, 'end_event_adjust_interval' => NULL, 'is_current_member' => 0, - 'is_admin' => 0, 'weight' => 4, - 'is_default' => 0, - 'is_active' => 1, 'is_reserved' => 0, ], [ @@ -76,10 +70,7 @@ return CRM_Core_CodeGen_SqlData::create('civicrm_membership_status') 'end_event_adjust_unit' => NULL, 'end_event_adjust_interval' => NULL, 'is_current_member' => 0, - 'is_admin' => 0, 'weight' => 5, - 'is_default' => 0, - 'is_active' => 1, 'is_reserved' => 1, ], [ @@ -92,10 +83,7 @@ return CRM_Core_CodeGen_SqlData::create('civicrm_membership_status') 'end_event_adjust_unit' => NULL, 'end_event_adjust_interval' => NULL, 'is_current_member' => 0, - 'is_admin' => 0, 'weight' => 6, - 'is_default' => 0, - 'is_active' => 1, 'is_reserved' => 1, ], [ @@ -110,8 +98,6 @@ return CRM_Core_CodeGen_SqlData::create('civicrm_membership_status') 'is_current_member' => 0, 'is_admin' => 1, 'weight' => 7, - 'is_default' => 0, - 'is_active' => 1, 'is_reserved' => 1, ], ]); -- 2.25.1