-
Notifications
You must be signed in to change notification settings - Fork 60
Add date_add, date_upd, soft delete and notification send time #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
|
The soft delete is very interesting 👍, let's understand how to manage on legal side tho |
I missed to delete all customer data. But once this is fixed, there should not remain any legal problem. Don't you think ? |
|
Waiting for you @lmeyer1 😉 |
|
This PR is blocking 2.4.2 release. |
LouisAUTHIE
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
|
@lmeyer1 can you rebase maybe on the latest version of the dev branch to avoid merge worries ? |
|
For information, the install function has a bug preventing database creation: missing coma at the end of line 139 |
|
@LouisAUTHIE I hope the rebase was successful. |
|
|
||
| /** @var string Object last modification date */ | ||
| public $date_upd; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
notification_sent and deleted are missing I guess
| 'id_shop' => ['type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true], | ||
| 'id_lang' => ['type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true], | ||
| 'date_add' => ['type' => self::TYPE_DATE, 'validate' => 'isDate'], | ||
| 'date_upd' => ['type' => self::TYPE_DATE, 'validate' => 'isDate'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
notification_sent and deleted are missing I guess
| function upgrade_module_2_3_4() | ||
| { | ||
| $result = Db::getInstance()->execute('ALTER TABLE `' . _DB_PREFIX_ . 'mailalert_customer_oos` ADD `date_add` DATETIME NOT NULL, ADD `date_upd` DATETIME NOT NULL;'); | ||
| $result = $result && Db::getInstance()->execute('ALTER TABLE `' . _DB_PREFIX_ . 'mailalert_customer_oos` ADD `deleted` TINYINT NOT NULL DEFAULT 0, ADD `notification_sent` DATETIME NULL DEFAULT NULL, ADD INDEX (`deleted`)'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this two lines could be in one
ps_mailalert_customer_oos, in order for merchant to be able to analyze customer needs and behavior.There are these improvements in the db:
date_addnotification_sentand the line is soft-deleted.