mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 17:05:45 +02:00
GiST and Tsvector references removed so DB/build will work
This commit is contained in:
parent
b493435b5b
commit
5d9364721d
@ -1,2 +1,3 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
?>
|
@ -109,9 +109,9 @@ class PostgreSQLDatabase extends Database {
|
|||||||
$starttime = microtime(true);
|
$starttime = microtime(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
echo 'sql: ' . $sql . '<br>';
|
echo 'sql: ' . $sql . '<br>';
|
||||||
*/
|
|
||||||
$handle = pg_query($this->dbConn, $sql);
|
$handle = pg_query($this->dbConn, $sql);
|
||||||
|
|
||||||
if(isset($_REQUEST['showqueries'])) {
|
if(isset($_REQUEST['showqueries'])) {
|
||||||
@ -209,7 +209,8 @@ class PostgreSQLDatabase extends Database {
|
|||||||
if($this_index['type']=='fulltext'){
|
if($this_index['type']=='fulltext'){
|
||||||
//ALTER TABLE tblMessages ADD COLUMN idxFTI tsvector;
|
//ALTER TABLE tblMessages ADD COLUMN idxFTI tsvector;
|
||||||
//CREATE INDEX ix_vault_indexed_words ON vault_indexed USING gist(words);
|
//CREATE INDEX ix_vault_indexed_words ON vault_indexed USING gist(words);
|
||||||
$fulltexts.=$this_index['name'] . ' tsvector, ';
|
|
||||||
|
//$fulltexts.=$this_index['name'] . ' tsvector, ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -399,7 +400,8 @@ class PostgreSQLDatabase extends Database {
|
|||||||
} else {
|
} else {
|
||||||
//create a type-specific index
|
//create a type-specific index
|
||||||
if($indexSpec['type']=='fulltext'){
|
if($indexSpec['type']=='fulltext'){
|
||||||
return 'create index ix_' . $tableName . '_' . $indexSpec['name'] . " ON \"" . $tableName . "\" USING gist(" . $indexSpec['name'] . ');';
|
//return 'create index ix_' . $tableName . '_' . $indexSpec['name'] . " ON \"" . $tableName . "\" USING gist(" . $indexSpec['name'] . ');';
|
||||||
|
return '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user