diff --git a/workflow/engine/classes/model/map/NotificationDeviceMapBuilder.php b/workflow/engine/classes/model/map/NotificationDeviceMapBuilder.php
index ce26120b7..403ec193f 100644
--- a/workflow/engine/classes/model/map/NotificationDeviceMapBuilder.php
+++ b/workflow/engine/classes/model/map/NotificationDeviceMapBuilder.php
@@ -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);
diff --git a/workflow/engine/classes/model/om/BaseNotificationDevice.php b/workflow/engine/classes/model/om/BaseNotificationDevice.php
index 2f33fbf7b..56a8f3bb4 100644
--- a/workflow/engine/classes/model/om/BaseNotificationDevice.php
+++ b/workflow/engine/classes/model/om/BaseNotificationDevice.php
@@ -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;
}
diff --git a/workflow/engine/config/schema.xml b/workflow/engine/config/schema.xml
index 64ce0a367..cbfc3271e 100644
--- a/workflow/engine/config/schema.xml
+++ b/workflow/engine/config/schema.xml
@@ -5543,16 +5543,7 @@
-
-
-
-
-
-
-
-
-
-
+
diff --git a/workflow/engine/data/mysql/schema.sql b/workflow/engine/data/mysql/schema.sql
index 6a6b4a9e5..ed28ed375 100644
--- a/workflow/engine/data/mysql/schema.sql
+++ b/workflow/engine/data/mysql/schema.sql
@@ -3077,7 +3077,7 @@ CREATE TABLE `NOTIFICATION_DEVICE`
`DEV_UID` VARCHAR(32) default '' NOT NULL,
`USR_UID` VARCHAR(32) default '' NOT NULL,
`SYS_LANG` VARCHAR(10) default '',
- `DEV_REG_ID` MEDIUMTEXT default '' NOT NULL,
+ `DEV_REG_ID` VARCHAR(255) default '' NOT NULL,
`DEV_TYPE` VARCHAR(50) default '' NOT NULL,
`DEV_CREATE` DATETIME NOT NULL,
`DEV_UPDATE` DATETIME NOT NULL,