Skip to content

Commit

Permalink
UUID fields should also be fixed length strings.
Browse files Browse the repository at this point in the history
Since we can't preserve the UUID type a fixed length string will have to
do.
  • Loading branch information
markstory committed May 2, 2013
1 parent 55251e5 commit 9666b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Database/Schema/PostgresSchema.php
Expand Up @@ -108,7 +108,7 @@ public function convertColumn($column) {
return ['type' => 'string', 'length' => 39];
}
if ($col === 'uuid') {
return ['type' => 'string', 'length' => 36];
return ['type' => 'string', 'fixed' => true, 'length' => 36];
}
if ($col === 'char' || $col === 'character') {
return ['type' => 'string', 'fixed' => true, 'length' => $length];
Expand Down

0 comments on commit 9666b84

Please sign in to comment.