Make the upgrade sub safe for reinstalls.

This commit is contained in:
Colin Kuskie 2011-10-06 14:51:35 -07:00
parent 6ed275b133
commit 3832e130dc

View file

@ -43,7 +43,7 @@ sub addPALastLogTable {
print "\tAdd a table to keep track of additional Passive Analytics data... " unless $quiet;
# and here's our code
$session->db->write(<<EOSQL);
CREATE TABLE `PA_lastLog` (
CREATE TABLE IF NOT EXISTS `PA_lastLog` (
`userId` char(22) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`assetId` char(22) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`sessionId` char(22) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,