diff --git a/database/database.mysql b/database/database.mysql
index 698d81d2d959835ff1164e42cee1f569278fe25e..dfe3f7a74e50d498f12a109510bfdf5583d37d49 100644
--- a/database/database.mysql
+++ b/database/database.mysql
@@ -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;
 
 --
diff --git a/database/database.pgsql b/database/database.pgsql
index 6d3da335c6140068fb9925db4fb1aa37bd57fc90..187ee0a767ee8af8ba3e105ae43607569c8654db 100644
--- a/database/database.pgsql
+++ b/database/database.pgsql
@@ -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)
 );
 
 --
diff --git a/database/updates.inc b/database/updates.inc
index 54ca79eb1cb5fb1a556bf1e4e94d360b3ff6e648..fffa8e1301cfb63f18c06024cf85215c38e61cd2 100644
--- a/database/updates.inc
+++ b/database/updates.inc
@@ -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 {