diff --git a/docs/upgrades/upgrade_4.1.0-4.2.0.sql b/docs/upgrades/upgrade_4.1.0-4.2.0.sql index 3bfdf561d..9e74c1c8f 100644 --- a/docs/upgrades/upgrade_4.1.0-4.2.0.sql +++ b/docs/upgrades/upgrade_4.1.0-4.2.0.sql @@ -783,25 +783,6 @@ insert into international values (601,'WebGUI',1,'International ID'); insert into international values (602,'WebGUI',1,'Edit Help'); insert into international values (603,'WebGUI',1,'Action'); insert into international values (604,'WebGUI',1,'Object'); - - - - - - - - - - - - - - - - - - - CREATE TABLE MailForm ( wobjectId int(11) NOT NULL default '0', width int(11) NOT NULL default '0', @@ -884,3 +865,6 @@ INSERT INTO help VALUES (2, 'MailForm', 1, 'Add/Edit', 'Mail Form Fields', 'You INSERT INTO helpSeeAlso VALUES (13, 2, 'MailForm'); INSERT INTO helpSeeAlso VALUES (14, 1, 'MailForm'); +alter table karmaLog add column dateModified int not null default 1026097656; + + diff --git a/lib/WebGUI/User.pm b/lib/WebGUI/User.pm index 721e25606..88597c505 100644 --- a/lib/WebGUI/User.pm +++ b/lib/WebGUI/User.pm @@ -239,7 +239,7 @@ sub identifier { sub karma { if (defined $_[1] && defined $_[2] && defined $_[3]) { WebGUI::SQL->write("update users set karma=karma+$_[1] where userId=".$_[0]->userId); - WebGUI::SQL->write("insert into karmaLog values (".$_[0]->userId.",$_[1],".quote($_[2]).",".quote($_[3]).")"); + WebGUI::SQL->write("insert into karmaLog values (".$_[0]->userId.",$_[1],".quote($_[2]).",".quote($_[3]).",".time().")"); } return $_[0]->{_user}{karma}; }