Skip to content
Snippets Groups Projects
Commit 92496eb8 authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

#14400 by chx. Add a missing key.

parent 153fbc78
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment