HOR-3177
MySQL Exception in APP when the Mobile Notifications are enabled in env.ini
This commit is contained in:
@@ -71,7 +71,7 @@ class NotificationDeviceMapBuilder
|
||||
|
||||
$tMap->addColumn('SYS_LANG', 'SysLang', 'string', CreoleTypes::VARCHAR, false, 10);
|
||||
|
||||
$tMap->addColumn('DEV_REG_ID', 'DevRegId', 'string', CreoleTypes::LONGVARCHAR, true, null);
|
||||
$tMap->addColumn('DEV_REG_ID', 'DevRegId', 'string', CreoleTypes::VARCHAR, true, 255);
|
||||
|
||||
$tMap->addColumn('DEV_TYPE', 'DevType', 'string', CreoleTypes::VARCHAR, true, 50);
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ abstract class BaseNotificationDevice extends BaseObject implements Persistent
|
||||
* The value for the dev_reg_id field.
|
||||
* @var string
|
||||
*/
|
||||
protected $dev_reg_id;
|
||||
protected $dev_reg_id = '';
|
||||
|
||||
/**
|
||||
* The value for the dev_type field.
|
||||
@@ -283,7 +283,7 @@ abstract class BaseNotificationDevice extends BaseObject implements Persistent
|
||||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->dev_reg_id !== $v) {
|
||||
if ($this->dev_reg_id !== $v || $v === '') {
|
||||
$this->dev_reg_id = $v;
|
||||
$this->modifiedColumns[] = NotificationDevicePeer::DEV_REG_ID;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user