? sites/default/modules ? sites/default/settings.php Index: modules/dblog/dblog.admin.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/dblog/dblog.admin.inc,v retrieving revision 1.8 diff -u -p -r1.8 dblog.admin.inc --- modules/dblog/dblog.admin.inc 19 Jul 2008 07:44:45 -0000 1.8 +++ modules/dblog/dblog.admin.inc 30 Oct 2008 09:35:12 -0000 @@ -108,10 +108,11 @@ function dblog_top($type) { array('data' => t('Message'), 'field' => 'message') ); - $result = pager_query("SELECT COUNT(wid) AS count, message, variables FROM {watchdog} WHERE type = '%s' GROUP BY message, variables " . tablesort_sql($header), 30, 0, "SELECT COUNT(DISTINCT(message)) FROM {watchdog} WHERE type = '%s'", $type); + $result = pager_query("SELECT COUNT(wid) AS count, message FROM {watchdog} WHERE type = %s GROUP BY message " . tablesort_sql($header), 30, 0, "SELECT COUNT(DISTINCT(message)) FROM {watchdog} WHERE type = %s", $type); $rows = array(); while ($dblog = db_fetch_object($result)) { + $dblog->variables = db_query("SELECT variables FROM {watchdog} WHERE message = :message", array(':message' => $dblog->message))->fetchField(); $rows[] = array($dblog->count, truncate_utf8(_dblog_format_message($dblog), 56, TRUE, TRUE)); } Index: modules/dblog/dblog.install =================================================================== RCS file: /cvs/drupal/drupal/modules/dblog/dblog.install,v retrieving revision 1.9 diff -u -p -r1.9 dblog.install --- modules/dblog/dblog.install 22 Oct 2008 18:32:31 -0000 1.9 +++ modules/dblog/dblog.install 30 Oct 2008 09:35:12 -0000 @@ -49,7 +49,7 @@ function dblog_schema() { 'description' => t('Text of log message to be passed into the t() function.'), ), 'variables' => array( - 'type' => 'text', + 'type' => 'blob', 'not null' => TRUE, 'size' => 'big', 'description' => t('Serialized array of variables that match the message string and that is passed into the t() function.'), @@ -106,6 +106,11 @@ function dblog_schema() { } /** + * @defgroup updates-6.x-to-7.x Database logging updates from 6.x to 7.x + * @{ + */ + +/** * Allow NULL values for links. */ function dblog_update_7001() { @@ -123,3 +128,17 @@ function dblog_update_7002() { db_add_index($ret, 'watchdog', 'uid', array('uid')); return $ret; } + +/** + * Remap {watchdog}.variables as BLOB type. + */ +function dblog_update_7002() { + $ret = array(); + db_change_field($ret, 'watchdog', 'variables', 'variables', array('type' => 'blob', 'not null' => TRUE, 'size' => 'big')); + return $ret; +} + +/** + * @} End of "defgroup updates-6.x-to-7.x" + * The next series of updates should start at 8000. + */