Real PA status, as described in the RFE.
This commit is contained in:
parent
b206ad1270
commit
0b0962096e
3 changed files with 40 additions and 5 deletions
|
|
@ -34,8 +34,8 @@ installLoggingTables($session);
|
|||
installPassiveAnalyticsRule($session);
|
||||
installPassiveAnalyticsConfig($session);
|
||||
installWorkflow($session);
|
||||
#addAdminGroup($session);
|
||||
addPassiveAnalyticsSettings($session);
|
||||
addPassiveAnalyticsStatus($session);
|
||||
|
||||
finish($session);
|
||||
|
||||
|
|
@ -105,6 +105,28 @@ sub addPassiveAnalyticsSettings {
|
|||
print "DONE!\n";
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Add the PassiveAnalytics Rule table
|
||||
sub addPassiveAnalyticsStatus {
|
||||
my $session = shift;
|
||||
my $db = $session->db;
|
||||
print "\tInstall Passive Analytics status table... ";
|
||||
# and here's our code
|
||||
$db->write(<<EOT2);
|
||||
DROP TABLE if exists passiveAnalyticsStatus;
|
||||
EOT2
|
||||
$db->write(<<EOT3);
|
||||
CREATE TABLE `passiveAnalyticsStatus` (
|
||||
`startDate` datetime,
|
||||
`endDate` datetime,
|
||||
`running` integer(2) DEFAULT 0,
|
||||
`userId` varchar(22) character set utf8 collate utf8_bin NOT NULL default ''
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
EOT3
|
||||
$db->write('insert into passiveAnalyticsStatus (userId) VALUES (3)');
|
||||
print "DONE!\n";
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Add the Passive Analytics config file entry
|
||||
# for the adminConsole and the content handler
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue