Index: trunk/core/install/upgrades.sql
===================================================================
diff -u -r8057 -r8066
--- trunk/core/install/upgrades.sql	(.../upgrades.sql)	(revision 8057)
+++ trunk/core/install/upgrades.sql	(.../upgrades.sql)	(revision 8066)
@@ -72,3 +72,16 @@
 	CHANGE PortalUserId PortalUserId INT(11) NOT NULL DEFAULT '-2',
 	CHANGE Language Language INT(11) NOT NULL DEFAULT '1',
 	CHANGE Theme Theme INT(11) NOT NULL DEFAULT '1';
+
+CREATE TABLE Counters (
+  CounterId int(10) unsigned NOT NULL auto_increment,
+  Name varchar(100) NOT NULL default '',
+  CountQuery text,
+  CountValue text,
+  LastCounted int(10) unsigned default NULL,
+  LifeTime int(10) unsigned NOT NULL default '3600',
+  IsClone tinyint(3) unsigned NOT NULL default '0',
+  TablesAffected text,
+  PRIMARY KEY  (CounterId),
+  UNIQUE KEY Name (Name)
+);
