Skip to content

Commit

Permalink
Merge pull request #10359 from JMAConsulting/CRM-20576
Browse files Browse the repository at this point in the history
CRM-20576, changed length of civicrm_batch.title to 255
  • Loading branch information
monishdeb authored May 15, 2017
2 parents 7babec9 + 59ccff5 commit 3f9833e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CRM/Batch/DAO/Batch.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*
* Generated from xml/schema/CRM/Batch/Batch.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:f1b35f9cc4e12f1d4c2b026aacca7e50)
* (GenCodeChecksum:a9d49cd47b4a388ca88aa2af363f952d)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
Expand Down Expand Up @@ -213,8 +213,8 @@ static function &fields() {
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('Batch Title') ,
'description' => 'Friendly Name.',
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
'table_name' => 'civicrm_batch',
'entity' => 'Batch',
'bao' => 'CRM_Batch_BAO_Batch',
Expand Down
9 changes: 9 additions & 0 deletions CRM/Upgrade/Incremental/sql/4.7.20.mysql.tpl
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
{* file to handle db changes in 4.7.20 during upgrade *}

-- CRM-20576
{if $multilingual}
{foreach from=$locales item=locale}
ALTER TABLE civicrm_batch CHANGE title_{$locale} title_{$locale} varchar(255);
{/foreach}
{else}
ALTER TABLE civicrm_batch CHANGE title title varchar(255);
{/if}
2 changes: 1 addition & 1 deletion xml/schema/Batch/Batch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<name>title</name>
<title>Batch Title</title>
<type>varchar</type>
<length>64</length>
<length>255</length>
<localizable>true</localizable>
<comment>Friendly Name.</comment>
<add>4.2</add>
Expand Down

0 comments on commit 3f9833e

Please sign in to comment.