[-] CORE : fixed bug #PSCFV-4754 field name in image_type was too short
This commit is contained in:
@@ -62,7 +62,7 @@ class ImageTypeCore extends ObjectModel
|
|||||||
'table' => 'image_type',
|
'table' => 'image_type',
|
||||||
'primary' => 'id_image_type',
|
'primary' => 'id_image_type',
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'name' => array('type' => self::TYPE_STRING, 'validate' => 'isImageTypeName', 'required' => true, 'size' => 16),
|
'name' => array('type' => self::TYPE_STRING, 'validate' => 'isImageTypeName', 'required' => true, 'size' => 64),
|
||||||
'width' => array('type' => self::TYPE_INT, 'validate' => 'isImageSize', 'required' => true),
|
'width' => array('type' => self::TYPE_INT, 'validate' => 'isImageSize', 'required' => true),
|
||||||
'height' => array('type' => self::TYPE_INT, 'validate' => 'isImageSize', 'required' => true),
|
'height' => array('type' => self::TYPE_INT, 'validate' => 'isImageSize', 'required' => true),
|
||||||
'categories' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
|
'categories' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
|
||||||
|
|||||||
@@ -894,7 +894,7 @@ CREATE TABLE `PREFIX_image_lang` (
|
|||||||
|
|
||||||
CREATE TABLE `PREFIX_image_type` (
|
CREATE TABLE `PREFIX_image_type` (
|
||||||
`id_image_type` int(10) unsigned NOT NULL auto_increment,
|
`id_image_type` int(10) unsigned NOT NULL auto_increment,
|
||||||
`name` varchar(16) NOT NULL,
|
`name` varchar(64) NOT NULL,
|
||||||
`width` int(10) unsigned NOT NULL,
|
`width` int(10) unsigned NOT NULL,
|
||||||
`height` int(10) unsigned NOT NULL,
|
`height` int(10) unsigned NOT NULL,
|
||||||
`products` tinyint(1) NOT NULL default '1',
|
`products` tinyint(1) NOT NULL default '1',
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
SET NAMES 'utf8';
|
SET NAMES 'utf8';
|
||||||
|
|
||||||
UPDATE `PREFIX_meta` SET `page` = 'supplier' WHERE `page` = 'supply';
|
UPDATE `PREFIX_meta` SET `page` = 'supplier' WHERE `page` = 'supply';
|
||||||
|
|
||||||
|
ALTER TABLE `PREFIX_image_type` CHANGE `name` `name` VARCHAR( 64 ) NOT NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user