[-] CORE : FixBug #PSCSX-89 - Up configuration name size to 255

This commit is contained in:
Jerome Nadaud
2013-12-11 11:44:34 +01:00
parent 3792fab83a
commit 347c0176a5
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ class ConfigurationCore extends ObjectModel
'primary' => 'id_configuration',
'multilang' => true,
'fields' => array(
'name' => array('type' => self::TYPE_STRING, 'validate' => 'isConfigName', 'required' => true, 'size' => 32),
'name' => array('type' => self::TYPE_STRING, 'validate' => 'isConfigName', 'required' => true, 'size' => 255),
'id_shop_group' => array('type' => self::TYPE_NOTHING, 'validate' => 'isUnsignedId'),
'id_shop' => array('type' => self::TYPE_NOTHING, 'validate' => 'isUnsignedId'),
'value' => array('type' => self::TYPE_STRING),
+1 -1
View File
@@ -423,7 +423,7 @@ CREATE TABLE `PREFIX_configuration` (
`id_configuration` int(10) unsigned NOT NULL auto_increment,
`id_shop_group` INT(11) UNSIGNED DEFAULT NULL,
`id_shop` INT(11) UNSIGNED DEFAULT NULL,
`name` varchar(32) NOT NULL,
`name` varchar(255) NOT NULL,
`value` text,
`date_add` datetime NOT NULL,
`date_upd` datetime NOT NULL,
+2
View File
@@ -6,3 +6,5 @@ INSERT INTO `PREFIX_hook_module` (`id_module`, `id_shop`, `id_hook`, `position`)
WHERE m.name IN ('dashgoals', 'dashactivity', 'dashtrends', 'dashproducts')
AND h.name IN ('actionAdminControllerSetMedia')
);
ALTER TABLE `PREFIX_configuration` CHANGE `name` `name` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;