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