Permalink
Browse files

default description and keywords size increased

  • Loading branch information...
1 parent d8fb98b commit fae4205f880f0e10454063fd57c0ecf3254cce6b @bjornbjorn committed Feb 23, 2012
Showing with 12 additions and 3 deletions.
  1. +4 −0 changelog.txt
  2. +8 −3 seo_lite/upd.seo_lite.php
View
@@ -2,6 +2,10 @@ Changelog for SEOLite
=====================
The dates in this changelog use international date format: YYYY-MM-DD (ISO8601)
+1.3.5 - 2012-02-23
+------------------
+* Increased the size of the "default_keywords" and "default_description" fields to 1024 in the database
+
1.3.4 - 2011-12-19
------------------
* Added support for config override of publish tab title (e.g. $config['seo_lite_tab_title'] = 'SEO';)
View
@@ -13,7 +13,7 @@
*/
class Seo_lite_upd {
- var $version = '1.3.4';
+ var $version = '1.3.5';
var $module_name = "Seo_lite";
/**
@@ -95,11 +95,11 @@ function install()
'type' => 'text',),
'default_keywords' => array(
'type' => 'varchar',
- 'constraint' => '255',
+ 'constraint' => '1024',
'null' => FALSE,),
'default_description' => array(
'type' => 'varchar',
- 'constraint' => '255',
+ 'constraint' => '1024',
'null' => FALSE),
'default_title_postfix' => array(
@@ -235,6 +235,11 @@ function update($current = '')
}
}
+ if($current < '1.3.5') {
+ $sql = "ALTER TABLE `".$this->EE->db->dbprefix('seolite_config')."` CHANGE `default_keywords` `default_keywords` VARCHAR( 1024 ), CHANGE `default_description` `default_description` VARCHAR( 1024 )";
+ $this->EE->db->query($sql);
+ }
+
return TRUE;
}

0 comments on commit fae4205

Please sign in to comment.