浏览代码

! No point keeping the most_on index when we're not using it as per Mantis 4640.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 11 年之前
父节点
当前提交
31cd685b6b
共有 4 个文件被更改,包括 1 次插入17 次删除
  1. 1 2
      other/install_2-1_mysql.sql
  2. 0 5
      other/install_2-1_postgresql.sql
  3. 0 5
      other/install_2-1_sqlite.sql
  4. 0 5
      other/install_2-1_sqlite3.sql

+ 1 - 2
other/install_2-1_mysql.sql

@@ -777,8 +777,7 @@ CREATE TABLE {$db_prefix}log_activity (
   posts smallint(5) unsigned NOT NULL default '0',
   registers smallint(5) unsigned NOT NULL default '0',
   most_on smallint(5) unsigned NOT NULL default '0',
-  PRIMARY KEY (date),
-  KEY most_on (most_on)
+  PRIMARY KEY (date)
 ) ENGINE=MyISAM;
 
 #

+ 0 - 5
other/install_2-1_postgresql.sql

@@ -1012,11 +1012,6 @@ CREATE TABLE {$db_prefix}log_activity (
   PRIMARY KEY (date)
 );
 
-#
-# Indexes for table `log_activity`
-#
-CREATE INDEX {$db_prefix}log_activity_most_on ON {$db_prefix}log_activity (most_on);
-
 #
 # Sequence for table `log_banned`
 #

+ 0 - 5
other/install_2-1_sqlite.sql

@@ -807,11 +807,6 @@ CREATE TABLE {$db_prefix}log_activity (
   PRIMARY KEY (date)
 );
 
-#
-# Indexes for table `log_activity`
-#
-CREATE INDEX {$db_prefix}log_activity_most_on ON {$db_prefix}log_activity (most_on);
-
 #
 # Table structure for table `log_banned`
 #

+ 0 - 5
other/install_2-1_sqlite3.sql

@@ -807,11 +807,6 @@ CREATE TABLE {$db_prefix}log_activity (
   PRIMARY KEY (date)
 );
 
-#
-# Indexes for table `log_activity`
-#
-CREATE INDEX {$db_prefix}log_activity_most_on ON {$db_prefix}log_activity (most_on);
-
 #
 # Table structure for table `log_banned`
 #