Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changing param_value from VARCHAR(256) to TEXT to virtually remove th…

…e char limit on fields like the jquery blacklist
  • Loading branch information...
commit 35caa218afedc541ef9e5895eb2d9a745ca341ce 1 parent 7204ba7
Stian Didriksen stipsan authored
Showing with 14 additions and 1 deletion.
  1. +13 −0 controllers/abstract.php
  2. +1 −1  install.sql
13 controllers/abstract.php
View
@@ -46,6 +46,19 @@ public function __construct($options = array())
if(JFile::exists($cache)) return;
+
+
+ //This should be moved to its own file
+ $db = JFactory::getDBO();
+ $fields = $db->getTableFields(array('#__configurator'), true);
+ if($fields['#__configurator']['param_value'] == 'varchar')
+ {
+ $db->setQuery("ALTER TABLE #__configurator CHANGE COLUMN `param_value` `param_value` TEXT DEFAULT NULL");
+ $db->query();
+ }
+
+
+
ComConfiguratorHelperUtilities::installCleanup();
$content = 'Cleanup executed: ' . gmdate('Y-m-d h:m:s');
JFile::write($cache, $content);
2  install.sql
View
@@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS `#__configurator` (
`id` int(11) unsigned NOT NULL auto_increment,
`template_name` varchar(255) NOT NULL,
`param_name` varchar(64) NOT NULL,
- `param_value` varchar(256) default NULL,
+ `param_value` text default NULL,
`source` varchar(64) default NULL,
`published` tinyint(1) NOT NULL default '1',
PRIMARY KEY (`id`),
Please sign in to comment.
Something went wrong with that request. Please try again.