Commit cb0cda22 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #142 from rivaros/DBAL-264

Dbal 264
parents 0b9cf40e ab215e7d
...@@ -619,6 +619,17 @@ class PostgreSqlPlatform extends AbstractPlatform ...@@ -619,6 +619,17 @@ class PostgreSqlPlatform extends AbstractPlatform
return 'SMALLINT'; return 'SMALLINT';
} }
/**
* Decleration for a UUID field in PostgreSQL
*
* @param array $field
* @return string
*/
public function getGuidTypeDeclartionSQL(array $field)
{
return 'UUID';
}
/** /**
* @override * @override
*/ */
...@@ -768,6 +779,7 @@ class PostgreSqlPlatform extends AbstractPlatform ...@@ -768,6 +779,7 @@ class PostgreSqlPlatform extends AbstractPlatform
'money' => 'decimal', 'money' => 'decimal',
'numeric' => 'decimal', 'numeric' => 'decimal',
'year' => 'date', 'year' => 'date',
'uuid' => 'guid',
'bytea' => 'blob', 'bytea' => 'blob',
); );
} }
......
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