Skip to content
Snippets Groups Projects
Commit df974508 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #7286 by LiDave: improved filter table indices. I updated database/updates.inc as well.

parent 33eb82e1
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
......@@ -174,7 +174,7 @@ CREATE TABLE feed (
CREATE TABLE filters (
module varchar(64) NOT NULL default '',
weight tinyint(2) DEFAULT '0' NOT NULL,
KEY weight (weight)
KEY module (module)
) TYPE=MyISAM;
--
......
......@@ -173,7 +173,7 @@ CREATE TABLE feed (
CREATE TABLE filters (
module varchar(64) NOT NULL default '',
weight smallint DEFAULT '0' NOT NULL,
PRIMARY KEY (weight)
PRIMARY KEY (module)
);
--
......
......@@ -747,7 +747,7 @@ function update_78() {
$ret[] = update_sql("CREATE TABLE {filters} (
module varchar(64) NOT NULL default '',
weight tinyint(2) DEFAULT '0' NOT NULL,
KEY weight (weight)
KEY module (module)
)");
}
else {
......
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