Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Dbal 264 #142

Merged
merged 3 commits into from

3 participants

@rivaros

added support for Postgres UUID type.

@travisbot

This pull request fails (merged ab215e7 into fc3ead2).

@rivaros

could not find what exactly failed in travis

@beberlei beberlei merged commit cb0cda2 into doctrine:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 5, 2012
  1. @rivaros
  2. @rivaros

    Forgot the fixes

    rivaros authored
  3. @rivaros

    Fixes

    rivaros authored
This page is out of date. Refresh to see the latest.
Showing with 12 additions and 0 deletions.
  1. +12 −0 lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
View
12 lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
@@ -620,6 +620,17 @@ public function getSmallIntTypeDeclarationSQL(array $field)
}
/**
+ * Decleration for a UUID field in PostgreSQL
+ *
+ * @param array $field
+ * @return string
+ */
+ public function getGuidTypeDeclartionSQL(array $field)
+ {
+ return 'UUID';
+ }
+
+ /**
* @override
*/
public function getDateTimeTypeDeclarationSQL(array $fieldDeclaration)
@@ -768,6 +779,7 @@ protected function initializeDoctrineTypeMappings()
'money' => 'decimal',
'numeric' => 'decimal',
'year' => 'date',
+ 'uuid' => 'guid',
'bytea' => 'blob',
);
}
Something went wrong with that request. Please try again.