diff --git a/MailAlert.php b/MailAlert.php index 2686e93..a060506 100644 --- a/MailAlert.php +++ b/MailAlert.php @@ -38,6 +38,8 @@ class MailAlert extends ObjectModel public $id_lang; + public $date_add; + /** * @see ObjectModel::$definition */ @@ -50,7 +52,8 @@ class MailAlert extends ObjectModel 'id_product' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true), 'id_product_attribute' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true), 'id_shop' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true), - 'id_lang' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true) + 'id_lang' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true), + 'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDate') ), ); diff --git a/mailalerts.php b/mailalerts.php index 3271da5..bca6c66 100644 --- a/mailalerts.php +++ b/mailalerts.php @@ -117,6 +117,7 @@ public function install($delete_params = true) `id_product_attribute` int(10) unsigned NOT NULL, `id_shop` int(10) unsigned NOT NULL, `id_lang` int(10) unsigned NOT NULL, + `date_add` datetime NOT NULL, PRIMARY KEY (`id_customer`,`customer_email`,`id_product`,`id_product_attribute`,`id_shop`) ) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci';