PG tweak
This commit is contained in:
parent
54bac12eb9
commit
e44f1fe989
|
@ -83,11 +83,14 @@ class PgsqlSchema extends Schema
|
||||||
$field = array();
|
$field = array();
|
||||||
|
|
||||||
// ??
|
// ??
|
||||||
|
/*
|
||||||
list($type, $size) = $this->reverseMapType($row['udt_name']);
|
list($type, $size) = $this->reverseMapType($row['udt_name']);
|
||||||
$field['type'] = $type;
|
$field['type'] = $type;
|
||||||
if ($size !== null) {
|
if ($size !== null) {
|
||||||
$field['size'] = $size;
|
$field['size'] = $size;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
$field['type'] = $row['udt_name'];
|
||||||
|
|
||||||
if ($type == 'char' || $type == 'varchar') {
|
if ($type == 'char' || $type == 'varchar') {
|
||||||
if ($row['character_maximum_length'] !== null) {
|
if ($row['character_maximum_length'] !== null) {
|
||||||
|
@ -365,7 +368,7 @@ class PgsqlSchema extends Schema
|
||||||
|
|
||||||
if (!empty($column['size'])) {
|
if (!empty($column['size'])) {
|
||||||
$size = $column['size'];
|
$size = $column['size'];
|
||||||
if ($type == 'integer' &&
|
if ($type == 'int' &&
|
||||||
in_array($size, array('small', 'big'))) {
|
in_array($size, array('small', 'big'))) {
|
||||||
$type = $size . 'int';
|
$type = $size . 'int';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user