CRM-15740 : increase size for url
authoryashodha <yashodha.chaku@webaccessglobal.com>
Mon, 29 Dec 2014 12:52:43 +0000 (18:22 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Mon, 29 Dec 2014 12:52:43 +0000 (18:22 +0530)
----------------------------------------
* CRM-15740: Really long URLs cause SQL issue in a trackable mass mail
  https://issues.civicrm.org/jira/browse/CRM-15740

CRM/Upgrade/Incremental/sql/4.6.alpha1.mysql.tpl
xml/schema/Mailing/TrackableURL.xml

index d468cc745ea4918da214205466c043bb383b7c2a..d27a035602019e9ec6a6778a95fda26c6e18c565 100755 (executable)
@@ -120,3 +120,6 @@ VALUES
 
 -- CRM-15557--
 ALTER TABLE civicrm_line_item MODIFY COLUMN qty decimal(20,2);
+
+-- CRM-15740
+ALTER TABLE `civicrm_mailing_trackable_url` CHANGE `url` `url` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT;
\ No newline at end of file
index 92fb4353abd295feb01e4c125202e23b62951812..36abb63210605507ab5e5b1ee788b52f6dbdf3be 100644 (file)
@@ -17,8 +17,7 @@
   </primaryKey>
   <field>
     <name>url</name>
-    <type>varchar</type>
-    <length>255</length>
+    <type>text</type>    
     <required>true</required>
     <comment>The URL to be tracked.</comment>
   </field>