Index: branches/RC/core/install/upgrades.sql
===================================================================
diff -u -r10497 -r10516
--- branches/RC/core/install/upgrades.sql	(.../upgrades.sql)	(revision 10497)
+++ branches/RC/core/install/upgrades.sql	(.../upgrades.sql)	(revision 10516)
@@ -253,6 +253,7 @@
   StatisticsId int(10) unsigned NOT NULL auto_increment,
   TemplateName varchar(255) NOT NULL default '',
   Hits int(10) unsigned NOT NULL default '0',
+  LastHit int(11) NOT NULL default '0',
   ScriptTimeMin decimal(40,20) unsigned NOT NULL default '0.00000000000000000000',
   ScriptTimeAvg decimal(40,20) unsigned NOT NULL default '0.00000000000000000000',
   ScriptTimeMax decimal(40,20) unsigned NOT NULL default '0.00000000000000000000',
@@ -265,6 +266,7 @@
   PRIMARY KEY  (StatisticsId),
   KEY TemplateName (TemplateName),
   KEY Hits (Hits),
+  KEY LastHit (LastHit),
   KEY ScriptTimeMin (ScriptTimeMin),
   KEY ScriptTimeAvg (ScriptTimeAvg),
   KEY ScriptTimeMax (ScriptTimeMax),
@@ -280,13 +282,15 @@
   CaptureId int(10) unsigned NOT NULL auto_increment,
   TemplateNames text,
   Hits int(10) unsigned NOT NULL default '0',
+  LastHit int(11) NOT NULL default '0',
   SqlQuery text,
   TimeMin decimal(40,20) unsigned NOT NULL default '0.00000000000000000000',
   TimeAvg decimal(40,20) unsigned NOT NULL default '0.00000000000000000000',
   TimeMax decimal(40,20) unsigned NOT NULL default '0.00000000000000000000',
   QueryCrc int(11) NOT NULL default '0',
   PRIMARY KEY  (CaptureId),
   KEY Hits (Hits),
+  KEY LastHit (LastHit),
   KEY TimeMin (TimeMin),
   KEY TimeAvg (TimeAvg),
   KEY TimeMax (TimeMax),
