Commit 260a34c0 authored by Claudio Zizza's avatar Claudio Zizza Committed by Steve Müller

char length fixed in PostgreSqlSchemaManager

parent 6d99a554
...@@ -273,7 +273,7 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager ...@@ -273,7 +273,7 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
{ {
$tableColumn = array_change_key_case($tableColumn, CASE_LOWER); $tableColumn = array_change_key_case($tableColumn, CASE_LOWER);
if (strtolower($tableColumn['type']) === 'varchar') { if (strtolower($tableColumn['type']) === 'varchar' || strtolower($tableColumn['type']) === 'bpchar') {
// get length from varchar definition // get length from varchar definition
$length = preg_replace('~.*\(([0-9]*)\).*~', '$1', $tableColumn['complete_type']); $length = preg_replace('~.*\(([0-9]*)\).*~', '$1', $tableColumn['complete_type']);
$tableColumn['length'] = $length; $tableColumn['length'] = $length;
......
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