Renaming mailing tables to better names.
This commit is contained in:
parent
da2ea4d62b
commit
a1d8ab6f70
4 changed files with 16 additions and 5 deletions
|
|
@ -48,7 +48,7 @@ sub crud_definition {
|
|||
|
||||
my $definition = $class->SUPER::crud_definition( $session );
|
||||
|
||||
$definition->{ tableName } = 'WGMailing';
|
||||
$definition->{ tableName } = 'Mailing';
|
||||
$definition->{ tableKey } = 'mailingId';
|
||||
$definition->{ sequenceKey } = 'issueId';
|
||||
|
||||
|
|
@ -143,7 +143,7 @@ sub getStatusLine {
|
|||
my $db = $self->session->db;
|
||||
|
||||
my $sth = $db->read(
|
||||
'select status, isTest, count( status ) as cnt from WGMailing_queue where mailingId=? group by status,isTest',
|
||||
'select status, isTest, count( status ) as cnt from Mailing_email where mailingId=? group by status,isTest',
|
||||
[
|
||||
$self->getId,
|
||||
],
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ sub www_bounceReport {
|
|||
my $self = shift;
|
||||
my $session = $self->session;
|
||||
my $i18n = WebGUI::International->new( $session, 'MailingManager' );
|
||||
my $sth = $session->db->read( 'select distinct sentTo from WGMailing_queue where sentTo is not null' );
|
||||
my $sth = $session->db->read( 'select distinct sentTo from Mailing_email where sentTo is not null' );
|
||||
|
||||
my $output = '<table><tr><th>'.$i18n->get('email').'</th><th>'.$i18n->get('bounce score').'</th></tr>';
|
||||
while ( my ($email) = $sth->array ) {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ sub crud_definition {
|
|||
|
||||
my $definition = $class->SUPER::crud_definition( $session );
|
||||
|
||||
$definition->{ tableName } = 'WGMailing_queue';
|
||||
$definition->{ tableName } = 'Mailing_email';
|
||||
$definition->{ tableKey } = 'mailId';
|
||||
$definition->{ sequenceKey } = 'mailingId';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue