Commit 42b1dc62 authored by Dries's avatar Dries

- Patch #91477 by havran: fixed PostgreSQL install with database table...

- Patch #91477 by havran: fixed PostgreSQL install with database table prefixing.  Missing brackets.
parent 82637c02
......@@ -708,7 +708,7 @@ function system_install() {
list smallint_unsigned NOT NULL default 0,
PRIMARY KEY (fid, vid)
)");
db_query("CREATE INDEX file_revisions_vid_idx ON file_revisions(vid)");
db_query("CREATE INDEX {file_revisions}_vid_idx ON {file_revisions} (vid)");
db_query("CREATE TABLE {filter_formats} (
format serial,
......@@ -3349,7 +3349,7 @@ function system_update_1012() {
$ret[] = update_sql("ALTER TABLE {file_revisions} ADD INDEX(vid)");
break;
case 'pgsql':
$ret[] = update_sql('CREATE INDEX {file_revisions}_vid_idx ON {file_revisions}(vid)');
$ret[] = update_sql('CREATE INDEX {file_revisions}_vid_idx ON {file_revisions} (vid)');
break;
}
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