Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pledge: mark needed fields as required in schema #19309

Merged
merged 1 commit into from
Jan 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CRM/Pledge/DAO/Pledge.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Pledge/Pledge.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:186d3064229a2bd8a2de2483b4bb90c6)
* (GenCodeChecksum:6c3c68d4e00946adbfbc368e87d72a36)
*/

/**
Expand Down Expand Up @@ -382,6 +382,7 @@ public static function &fields() {
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('Pledge Frequency Unit'),
'description' => ts('Time units for recurrence of pledge payments.'),
'required' => TRUE,
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
'where' => 'civicrm_pledge.frequency_unit',
Expand Down Expand Up @@ -439,6 +440,7 @@ public static function &fields() {
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Pledge Number of Installments'),
'description' => ts('Total number of payments to be made.'),
'required' => TRUE,
'where' => 'civicrm_pledge.installments',
'export' => TRUE,
'default' => '1',
Expand Down Expand Up @@ -604,6 +606,7 @@ public static function &fields() {
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Pledge Status Id'),
'description' => ts('Implicit foreign key to civicrm_option_values in the pledge_status option group.'),
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_pledge.status_id',
'export' => FALSE,
Expand All @@ -624,6 +627,7 @@ public static function &fields() {
'name' => 'is_test',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Test'),
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_pledge.is_test',
'export' => TRUE,
Expand Down
4 changes: 4 additions & 0 deletions xml/schema/Pledge/Pledge.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
<uniqueName>pledge_frequency_unit</uniqueName>
<title>Pledge Frequency Unit</title>
<type>varchar</type>
<required>true</required>
<length>8</length>
<default>'month'</default>
<comment>Time units for recurrence of pledge payments.</comment>
Expand Down Expand Up @@ -169,6 +170,7 @@
<type>int unsigned</type>
<title>Pledge Number of Installments</title>
<default>1</default>
<required>true</required>
<comment>Total number of payments to be made.</comment>
<add>2.1</add>
<html>
Expand Down Expand Up @@ -286,6 +288,7 @@
<name>status_id</name>
<title>Pledge Status Id</title>
<uniqueName>pledge_status_id</uniqueName>
<required>true</required>
<import>true</import>
<export>false</export>
<type>int unsigned</type>
Expand All @@ -310,6 +313,7 @@
<title>Test</title>
<type>boolean</type>
<default>0</default>
<required>true</required>
<html>
<type>CheckBox</type>
</html>
Expand Down