From 92496eb8390edd6dcb915c005be7af882712a2f3 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Thu, 24 Aug 2006 06:27:41 +0000 Subject: #14400 by chx. Add a missing key. --- modules/system/system.install | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'modules/system/system.install') diff --git a/modules/system/system.install b/modules/system/system.install index 5753fe205..b7fd920dd 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -3076,6 +3076,20 @@ function system_update_1006() { return $ret; } +function system_update_1007() { + $ret = array(); + switch ($GLOBALS['db_type']) { + case 'mysql': + case 'mysqli': + $ret[] = update_sql("ALTER TABLE {aggregator_item} ADD INDEX (fid)"); + break; + case 'pgsql': + $ret[] = update_sql("CREATE INDEX {aggregator_item}_fid_idx ON {aggregator_item} (fid)"); + break; + } + return $ret; +} + /** * @} End of "defgroup updates-4.7-to-x.x" * The next series of updates should start at 2000. -- cgit v1.2.3