Unslow bounce report generation and add some extra info as a bonus!
This commit is contained in:
parent
63b0a9edf1
commit
dbf935e98b
4 changed files with 72 additions and 8 deletions
|
|
@ -34,9 +34,25 @@ renamespaceTemplates( $session );
|
|||
addSpecialStateTable( $session );
|
||||
addListNameColumn( $session );
|
||||
addRegistrationSteps( $session );
|
||||
addSentToIndex( $session );
|
||||
|
||||
finish($session);
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub addSentToIndex {
|
||||
my $session = shift;
|
||||
my $db = $session->db;
|
||||
|
||||
print "\tAdding index to column Mailing_email.sentTo...";
|
||||
|
||||
my @indexes = $db->buildArray('show indexes from Mailing_email where Column_name=?',['sentTo']);
|
||||
|
||||
if ( @indexes == 0 ) {
|
||||
$db->write('alter table Mailing_email add index(sentTo)');
|
||||
}
|
||||
|
||||
print "Done.\n";
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub addListNameColumn {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue