[-] CORE : FixBug #PSCSX-89 - Up configuration name size to 255
This commit is contained in:
1 parent
3792fab83a
commit
347c0176a5
3 files changed
+4
-2
No files matched your search
@@ -51,7 +51,7 @@ class ConfigurationCore extends ObjectModel
|
|||||||
'primary' => 'id_configuration',
|
'primary' => 'id_configuration',
|
||||||
'multilang' => true,
|
'multilang' => true,
|
||||||
'fields' => array(
|
'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_group' => array('type' => self::TYPE_NOTHING, 'validate' => 'isUnsignedId'),
|
||||||
'id_shop' => array('type' => self::TYPE_NOTHING, 'validate' => 'isUnsignedId'),
|
'id_shop' => array('type' => self::TYPE_NOTHING, 'validate' => 'isUnsignedId'),
|
||||||
'value' => array('type' => self::TYPE_STRING),
|
'value' => array('type' => self::TYPE_STRING),
|
||||||
|
|||||||
@@ -423,7 +423,7 @@ CREATE TABLE `PREFIX_configuration` (
|
|||||||
`id_configuration` int(10) unsigned NOT NULL auto_increment,
|
`id_configuration` int(10) unsigned NOT NULL auto_increment,
|
||||||
`id_shop_group` INT(11) UNSIGNED DEFAULT NULL,
|
`id_shop_group` INT(11) UNSIGNED DEFAULT NULL,
|
||||||
`id_shop` INT(11) UNSIGNED DEFAULT NULL,
|
`id_shop` INT(11) UNSIGNED DEFAULT NULL,
|
||||||
`name` varchar(32) NOT NULL,
|
`name` varchar(255) NOT NULL,
|
||||||
`value` text,
|
`value` text,
|
||||||
`date_add` datetime NOT NULL,
|
`date_add` datetime NOT NULL,
|
||||||
`date_upd` datetime NOT NULL,
|
`date_upd` datetime NOT NULL,
|
||||||
|
|||||||
@@ -6,3 +6,5 @@ INSERT INTO `PREFIX_hook_module` (`id_module`, `id_shop`, `id_hook`, `position`)
|
|||||||
WHERE m.name IN ('dashgoals', 'dashactivity', 'dashtrends', 'dashproducts')
|
WHERE m.name IN ('dashgoals', 'dashactivity', 'dashtrends', 'dashproducts')
|
||||||
AND h.name IN ('actionAdminControllerSetMedia')
|
AND h.name IN ('actionAdminControllerSetMedia')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
ALTER TABLE `PREFIX_configuration` CHANGE `name` `name` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
|
||||||
Reference in new issue
Block a user