Commit 02e23b4f authored by Dries's avatar Dries
Browse files

- Patch #81695 by sammys: fix cache indices on PostgreSQL.

parent e051f5bd
...@@ -507,9 +507,9 @@ function system_install() { ...@@ -507,9 +507,9 @@ function system_install() {
PRIMARY KEY (cid) PRIMARY KEY (cid)
)"); )");
db_query("CREATE INDEX {cache}_expire_idx ON {cache} (expire)"); db_query("CREATE INDEX {cache}_expire_idx ON {cache} (expire)");
db_query("CREATE INDEX {cache}_expire_idx ON {cache_filter} (expire)"); db_query("CREATE INDEX {cache_filter}_expire_idx ON {cache_filter} (expire)");
db_query("CREATE INDEX {cache}_expire_idx ON {cache_menu} (expire)"); db_query("CREATE INDEX {cache_menu}_expire_idx ON {cache_menu} (expire)");
db_query("CREATE INDEX {cache}_expire_idx ON {cache_page} (expire)"); db_query("CREATE INDEX {cache_page}_expire_idx ON {cache_page} (expire)");
db_query("CREATE TABLE {comments} ( db_query("CREATE TABLE {comments} (
cid serial, cid serial,
...@@ -3224,9 +3224,9 @@ function system_update_1009() { ...@@ -3224,9 +3224,9 @@ function system_update_1009() {
headers text, headers text,
PRIMARY KEY (cid) PRIMARY KEY (cid)
)"); )");
$ret[] = update_sql("CREATE INDEX {cache}_expire_idx ON {cache_filter} (expire)"); $ret[] = update_sql("CREATE INDEX {cache_filter}_expire_idx ON {cache_filter} (expire)");
$ret[] = update_sql("CREATE INDEX {cache}_expire_idx ON {cache_menu} (expire)"); $ret[] = update_sql("CREATE INDEX {cache_menu}_expire_idx ON {cache_menu} (expire)");
$ret[] = update_sql("CREATE INDEX {cache}_expire_idx ON {cache_page} (expire)"); $ret[] = update_sql("CREATE INDEX {cache_page}_expire_idx ON {cache_page} (expire)");
break; break;
} }
return $ret; return $ret;
......
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