Moved log_id to the top of the table definition for logging
authorTim Starling <tstarling@users.mediawiki.org>
Wed, 9 Apr 2008 15:19:54 +0000 (15:19 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Wed, 9 Apr 2008 15:19:54 +0000 (15:19 +0000)
maintenance/tables.sql

index 4ebbedd..0468240 100644 (file)
@@ -1055,6 +1055,9 @@ CREATE TABLE /*$wgDBprefix*/transcache (
 ) /*$wgDBTableOptions*/;
 
 CREATE TABLE /*$wgDBprefix*/logging (
+  -- Log ID, for referring to this specific log entry, probably for deletion and such.
+  log_id int unsigned NOT NULL auto_increment,
+
   -- Symbolic keys for the general log type and the action type
   -- within the log. The output format will be controlled by the
   -- action field, but only the type controls categorization.
@@ -1078,9 +1081,6 @@ CREATE TABLE /*$wgDBprefix*/logging (
   -- LF separated list of miscellaneous parameters
   log_params blob NOT NULL,
 
-  -- Log ID, for referring to this specific log entry, probably for deletion and such.
-  log_id int unsigned NOT NULL auto_increment,
-
   -- rev_deleted for logs
   log_deleted tinyint unsigned NOT NULL default '0',