1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 21:58:10 +02:00

reflection: removed Column::isUnsigned() (BC break)

This commit is contained in:
David Grudl
2018-03-23 12:09:34 +01:00
parent 714272bbbf
commit 7481c38759
4 changed files with 0 additions and 10 deletions

View File

@@ -116,7 +116,6 @@ class MsSqlReflector implements Dibi\Reflector
'table' => $table,
'nativetype' => $type,
'size' => $size,
'unsigned' => null,
'nullable' => $row['IS_NULLABLE'] === 'YES',
'default' => $row['COLUMN_DEFAULT'],
'autoincrement' => false,

View File

@@ -61,7 +61,6 @@ class MySqlReflector implements Dibi\Reflector
'table' => $table,
'nativetype' => strtoupper($type[0]),
'size' => isset($type[1]) ? (int) $type[1] : null,
'unsigned' => (bool) strstr($row['Type'], 'unsigned'),
'nullable' => $row['Null'] === 'YES',
'default' => $row['Default'],
'autoincrement' => $row['Extra'] === 'auto_increment',

View File

@@ -86,7 +86,6 @@ class SqlsrvReflector implements Dibi\Reflector
'table' => $table,
'nativetype' => strtoupper($row['DATA_TYPE']),
'size' => $row['CHARACTER_MAXIMUM_LENGTH'],
'unsigned' => true,
'nullable' => $row['IS_NULLABLE'] === 'YES',
'default' => $row['COLUMN_DEFAULT'],
'autoincrement' => $autoIncrements[$row['COLUMN_NAME']],

View File

@@ -21,7 +21,6 @@ use Dibi;
* @property-read string $type
* @property-read mixed $nativeType
* @property-read int|null $size
* @property-read bool|null $unsigned
* @property-read bool|null $nullable
* @property-read bool|null $autoIncrement
* @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
{
return isset($this->info['nullable']) ? (bool) $this->info['nullable'] : null;