Skip to content

Commit

Permalink
Merge pull request #10854 from agileware/patch-2
Browse files Browse the repository at this point in the history
CRM-21061 - Change report_id from 64 to 512 to match civicrm_option_v…
  • Loading branch information
eileenmcnaughton authored Aug 15, 2017
2 parents 1fcdc06 + 72572a6 commit 23e6588
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 34 deletions.
6 changes: 3 additions & 3 deletions CRM/Report/DAO/ReportInstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*
* Generated from xml/schema/CRM/Report/ReportInstance.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:857f3f19bbbb33bf039b6ea95f2097c5)
* (GenCodeChecksum:e28abdd2a3696c4a6072dfbfd4f54d68)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
Expand Down Expand Up @@ -257,8 +257,8 @@ static function &fields() {
'title' => ts('Report template ID') ,
'description' => 'FK to civicrm_option_value for the report template',
'required' => true,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
'maxlength' => 512,
'size' => CRM_Utils_Type::HUGE,
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
Expand Down
3 changes: 3 additions & 0 deletions CRM/Upgrade/Incremental/sql/4.7.25.mysql.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

ALTER TABLE `civicrm_menu`
ADD COLUMN `module_data` text COMMENT 'All other menu metadata not stored in other fields';

--CRM-21061 Increase report_id size from 64 to 512 to match civicrm_option_value.value column
ALTER TABLE civicrm_report_instance CHANGE COLUMN report_id report_id varchar(512) COMMENT 'FK to civicrm_option_value for the report template';
60 changes: 30 additions & 30 deletions sql/civicrm_generated.mysql

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion xml/schema/Report/ReportInstance.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<name>report_id</name>
<title>Report template ID</title>
<type>varchar</type>
<length>64</length>
<length>512</length>
<required>true</required>
<comment>FK to civicrm_option_value for the report template</comment>
<html>
Expand Down

0 comments on commit 23e6588

Please sign in to comment.