diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-08-24 06:27:41 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-08-24 06:27:41 +0000 |
commit | 92496eb8390edd6dcb915c005be7af882712a2f3 (patch) | |
tree | 65d36f060f6fe147483d58a91b91bb10c14d6f70 /modules/system/system.install | |
parent | 153fbc7839f70ff5d8deb4d3379ae007f494e973 (diff) | |
download | brdo-92496eb8390edd6dcb915c005be7af882712a2f3.tar.gz brdo-92496eb8390edd6dcb915c005be7af882712a2f3.tar.bz2 |
#14400 by chx. Add a missing key.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r-- | modules/system/system.install | 14 |
1 files changed, 14 insertions, 0 deletions
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. |