@@ -45,9 +45,12 @@ |
||
45 | 45 | { |
46 | 46 | $db->for( ['mariadb', 'mysql'], 'CREATE FULLTEXT INDEX `idx_msindte_content` ON `mshop_index_text` (`content`)' ); |
47 | 47 | |
48 | - try { |
|
48 | + try |
|
49 | + { |
|
49 | 50 | $db->for( 'postgresql', 'CREATE INDEX "idx_msindte_content" ON "mshop_index_text" USING GIN (to_tsvector(\'english\', "content"))' ); |
50 | - } catch( \Exception $e ) { |
|
51 | + } |
|
52 | + catch( \Exception $e ) |
|
53 | + { |
|
51 | 54 | // Doctrine DBAL bug: https://github.com/doctrine/dbal/issues/5351 |
52 | 55 | } |
53 | 56 | } |