Commit df974508 authored by Dries's avatar Dries
Browse files

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

parent 33eb82e1
......@@ -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 {
......
Markdown is supported
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