Commit 92496eb8 authored by drumm's avatar drumm
Browse files

#14400 by chx. Add a missing key.

parent 153fbc78
...@@ -52,7 +52,8 @@ function aggregator_install() { ...@@ -52,7 +52,8 @@ function aggregator_install() {
description longtext NOT NULL, description longtext NOT NULL,
timestamp int default NULL, timestamp int default NULL,
guid varchar(255), guid varchar(255),
PRIMARY KEY (iid) PRIMARY KEY (iid),
KEY fid (fid)
) /*!40100 DEFAULT CHARACTER SET UTF8 */ "); ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
break; break;
...@@ -106,6 +107,7 @@ function aggregator_install() { ...@@ -106,6 +107,7 @@ function aggregator_install() {
guid varchar(255), guid varchar(255),
PRIMARY KEY (iid) PRIMARY KEY (iid)
)"); )");
db_query("CREATE INDEX {aggregator_item}_fid_idx ON {aggregator_item} (fid)");
break; break;
} }
......
...@@ -3076,6 +3076,20 @@ function system_update_1006() { ...@@ -3076,6 +3076,20 @@ function system_update_1006() {
return $ret; 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" * @} End of "defgroup updates-4.7-to-x.x"
* The next series of updates should start at 2000. * The next series of updates should start at 2000.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment