[-] FO : CustomerMessage ip_address to string
This commit is contained in:
1 parent
1bee84d26c
commit
d409614222
2 files changed
+2
-1
No files matched your search
@@ -46,7 +46,7 @@ class CustomerMessageCore extends ObjectModel
|
|||||||
'fields' => array(
|
'fields' => array(
|
||||||
'id_employee' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'),
|
'id_employee' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'),
|
||||||
'id_customer_thread' => array('type' => self::TYPE_INT),
|
'id_customer_thread' => array('type' => self::TYPE_INT),
|
||||||
'ip_address' => array('type' => self::TYPE_INT, 'validate' => 'isIp2Long'),
|
'ip_address' => array('type' => self::TYPE_STRING, 'validate' => 'isIp2Long', 'size' => 15),
|
||||||
'message' => array('type' => self::TYPE_STRING, 'validate' => 'isCleanHtml', 'required' => true, 'size' => 65000),
|
'message' => array('type' => self::TYPE_STRING, 'validate' => 'isCleanHtml', 'required' => true, 'size' => 65000),
|
||||||
'file_name' => array('type' => self::TYPE_STRING),
|
'file_name' => array('type' => self::TYPE_STRING),
|
||||||
'user_agent' => array('type' => self::TYPE_STRING),
|
'user_agent' => array('type' => self::TYPE_STRING),
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE `PREFIX_customer_message` CHANGE `ip_address` `ip_address` VARCHAR( 15 ) NULL DEFAULT NULL;
|
||||||
Reference in new issue
Block a user