mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
Utilize native SQL field type declarations.
Doctrine provides a method to get the platform independent SQL field declaration.
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@
|
||||
"php": ">=5.3.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"doctrine/dbal": ">=2"
|
||||
"doctrine/dbal": ">=2.3"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0": {"Rhumsaa\\Uuid": "src/"}
|
||||
|
||||
@@ -36,7 +36,7 @@ class UuidType extends Type
|
||||
*/
|
||||
public function getSqlDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
|
||||
{
|
||||
return $platform->getVarcharTypeDeclarationSQL($fieldDeclaration);
|
||||
return $platform->getGuidTypeDeclartionSQL($fieldDeclaration);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user