Index: branches/5.2.x/core/install/install_schema.sql
===================================================================
diff -u -r16748 -r16754
--- branches/5.2.x/core/install/install_schema.sql	(.../install_schema.sql)	(revision 16748)
+++ branches/5.2.x/core/install/install_schema.sql	(.../install_schema.sql)	(revision 16754)
@@ -447,14 +447,17 @@
   LogBacktrace longtext,
   LogSourceFilename varchar(255) NOT NULL DEFAULT '',
   LogSourceFileLine int(11) DEFAULT NULL,
+  LogCodeFragment longtext,
+  LogCodeFragmentsRotated tinyint(4) NOT NULL DEFAULT '0',
   LogProcessId bigint(20) unsigned DEFAULT NULL,
   LogMemoryUsed bigint(20) unsigned NOT NULL,
   LogUserData longtext NOT NULL,
   LogNotificationStatus tinyint(4) NOT NULL DEFAULT '0',
   PRIMARY KEY (LogId),
   KEY LogLevel (LogLevel),
   KEY LogType (LogType),
-  KEY LogNotificationStatus (LogNotificationStatus)
+  KEY LogNotificationStatus (LogNotificationStatus),
+  KEY `TIMESTAMP_CODE_FRAGMENTS_ROTATED` (`LogTimestamp`,`LogCodeFragmentsRotated`) USING BTREE
 );
 
 CREATE TABLE SystemCache (
