Commit 937c92fe authored by Steve Müller's avatar Steve Müller

Merge pull request #796 from believer-ufa/master

Add tsvector type support in PostgreSQL Platform

Close #795
parents f64c97d7 5b617a62
...@@ -1071,6 +1071,7 @@ class PostgreSqlPlatform extends AbstractPlatform ...@@ -1071,6 +1071,7 @@ class PostgreSqlPlatform extends AbstractPlatform
'bool' => 'boolean', 'bool' => 'boolean',
'boolean' => 'boolean', 'boolean' => 'boolean',
'text' => 'text', 'text' => 'text',
'tsvector' => 'text',
'varchar' => 'string', 'varchar' => 'string',
'interval' => 'string', 'interval' => 'string',
'_varchar' => 'string', '_varchar' => 'string',
......
...@@ -783,4 +783,13 @@ abstract class AbstractPostgreSqlPlatformTestCase extends AbstractPlatformTestCa ...@@ -783,4 +783,13 @@ abstract class AbstractPostgreSqlPlatformTestCase extends AbstractPlatformTestCa
'ALTER INDEX idx_foo RENAME TO idx_foo_renamed', 'ALTER INDEX idx_foo RENAME TO idx_foo_renamed',
); );
} }
/**
* @group DBAL-1142
*/
public function testInitializesTsvectorTypeMapping()
{
$this->assertTrue($this->_platform->hasDoctrineTypeMappingFor('tsvector'));
$this->assertEquals('text', $this->_platform->getDoctrineTypeMapping('tsvector'));
}
} }
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