|
|
@@ -102,7 +102,7 @@ class PostgresSchema extends BaseSchema
|
|
|
return ['type' => 'biginteger', 'length' => 20];
|
|
|
}
|
|
|
if ($col === 'smallint') {
|
|
|
- return ['type' => 'integer', 'length' => 5];
|
|
|
+ return ['type' => 'smallint', 'length' => 5];
|
|
|
}
|
|
|
if ($col === 'inet') {
|
|
|
return ['type' => 'string', 'length' => 39];
|
|
|
@@ -351,6 +351,8 @@ class PostgresSchema extends BaseSchema
|
|
|
$data = $schema->column($name);
|
|
|
$out = $this->_driver->quoteIdentifier($name);
|
|
|
$typeMap = [
|
|
|
+ 'tinyint' => ' SMALLINT',
|
|
|
+ 'smallint' => ' SMALLINT',
|
|
|
'boolean' => ' BOOLEAN',
|
|
|
'binary' => ' BYTEA',
|
|
|
'float' => ' FLOAT',
|