mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 14:16:39 +02:00
reflection: removed Column::isUnsigned() (BC break)
This commit is contained in:
@@ -116,7 +116,6 @@ class MsSqlReflector implements Dibi\Reflector
|
|||||||
'table' => $table,
|
'table' => $table,
|
||||||
'nativetype' => $type,
|
'nativetype' => $type,
|
||||||
'size' => $size,
|
'size' => $size,
|
||||||
'unsigned' => null,
|
|
||||||
'nullable' => $row['IS_NULLABLE'] === 'YES',
|
'nullable' => $row['IS_NULLABLE'] === 'YES',
|
||||||
'default' => $row['COLUMN_DEFAULT'],
|
'default' => $row['COLUMN_DEFAULT'],
|
||||||
'autoincrement' => false,
|
'autoincrement' => false,
|
||||||
|
@@ -61,7 +61,6 @@ class MySqlReflector implements Dibi\Reflector
|
|||||||
'table' => $table,
|
'table' => $table,
|
||||||
'nativetype' => strtoupper($type[0]),
|
'nativetype' => strtoupper($type[0]),
|
||||||
'size' => isset($type[1]) ? (int) $type[1] : null,
|
'size' => isset($type[1]) ? (int) $type[1] : null,
|
||||||
'unsigned' => (bool) strstr($row['Type'], 'unsigned'),
|
|
||||||
'nullable' => $row['Null'] === 'YES',
|
'nullable' => $row['Null'] === 'YES',
|
||||||
'default' => $row['Default'],
|
'default' => $row['Default'],
|
||||||
'autoincrement' => $row['Extra'] === 'auto_increment',
|
'autoincrement' => $row['Extra'] === 'auto_increment',
|
||||||
|
@@ -86,7 +86,6 @@ class SqlsrvReflector implements Dibi\Reflector
|
|||||||
'table' => $table,
|
'table' => $table,
|
||||||
'nativetype' => strtoupper($row['DATA_TYPE']),
|
'nativetype' => strtoupper($row['DATA_TYPE']),
|
||||||
'size' => $row['CHARACTER_MAXIMUM_LENGTH'],
|
'size' => $row['CHARACTER_MAXIMUM_LENGTH'],
|
||||||
'unsigned' => true,
|
|
||||||
'nullable' => $row['IS_NULLABLE'] === 'YES',
|
'nullable' => $row['IS_NULLABLE'] === 'YES',
|
||||||
'default' => $row['COLUMN_DEFAULT'],
|
'default' => $row['COLUMN_DEFAULT'],
|
||||||
'autoincrement' => $autoIncrements[$row['COLUMN_NAME']],
|
'autoincrement' => $autoIncrements[$row['COLUMN_NAME']],
|
||||||
|
@@ -21,7 +21,6 @@ use Dibi;
|
|||||||
* @property-read string $type
|
* @property-read string $type
|
||||||
* @property-read mixed $nativeType
|
* @property-read mixed $nativeType
|
||||||
* @property-read int|null $size
|
* @property-read int|null $size
|
||||||
* @property-read bool|null $unsigned
|
|
||||||
* @property-read bool|null $nullable
|
* @property-read bool|null $nullable
|
||||||
* @property-read bool|null $autoIncrement
|
* @property-read bool|null $autoIncrement
|
||||||
* @property-read mixed $default
|
* @property-read mixed $default
|
||||||
@@ -95,12 +94,6 @@ class Column
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function isUnsigned(): ?bool
|
|
||||||
{
|
|
||||||
return isset($this->info['unsigned']) ? (bool) $this->info['unsigned'] : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function isNullable(): ?bool
|
public function isNullable(): ?bool
|
||||||
{
|
{
|
||||||
return isset($this->info['nullable']) ? (bool) $this->info['nullable'] : null;
|
return isset($this->info['nullable']) ? (bool) $this->info['nullable'] : null;
|
||||||
|
Reference in New Issue
Block a user