Create a new table for stats notification

[MAILPOET-1571]
This commit is contained in:
Pavel Dohnal
2018-12-11 13:23:28 +01:00
parent 423341abb0
commit 9080b5260e
4 changed files with 36 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ class Migrator {
'settings',
'custom_fields',
'scheduled_tasks',
'stats_notifications',
'scheduled_task_subscribers',
'sending_queues',
'subscribers',
@@ -126,6 +127,18 @@ class Migrator {
return $this->sqlify(__FUNCTION__, $attributes);
}
function statsNotifications() {
$attributes = array(
'id int(11) unsigned NOT NULL AUTO_INCREMENT,',
'newsletter_id int(11) unsigned NOT NULL,',
'task_id int(11) unsigned NOT NULL,',
'PRIMARY KEY (id),',
'KEY newsletter_id (newsletter_id),',
'KEY task_id (task_id)',
);
return $this->sqlify(__FUNCTION__, $attributes);
}
function scheduledTaskSubscribers() {
$attributes = array(
'task_id int(11) unsigned NOT NULL,',