Commit 762bc543 authored by Roman Akhmadullin's avatar Roman Akhmadullin

Tsvector field type support in PostgreSQL Platform

parent f64c97d7
...@@ -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',
......
...@@ -15,4 +15,11 @@ class PostgreSqlPlatformTest extends AbstractPostgreSqlPlatformTestCase ...@@ -15,4 +15,11 @@ class PostgreSqlPlatformTest extends AbstractPostgreSqlPlatformTestCase
{ {
$this->assertTrue($this->_platform->supportsPartialIndexes()); $this->assertTrue($this->_platform->supportsPartialIndexes());
} }
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