Skip to content

Commit d1e6f53

Browse files
committed
removed meta info unsigned, onDelete, onUpdate
1 parent 284b816 commit d1e6f53

File tree

5 files changed

+0
-11
lines changed

5 files changed

+0
-11
lines changed

src/Database/Drivers/MySqlDriver.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ public function getColumns(string $table): array
158158
'table' => $table,
159159
'nativetype' => strtoupper($type[0]),
160160
'size' => isset($type[1]) ? (int) $type[1] : null,
161-
'unsigned' => (bool) strstr($row['Type'], 'unsigned'),
162161
'nullable' => $row['Null'] === 'YES',
163162
'default' => $row['Default'],
164163
'autoincrement' => $row['Extra'] === 'auto_increment',

src/Database/Drivers/PgSqlDriver.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ public function getColumns(string $table): array
155155
c.relname::varchar AS table,
156156
upper(t.typname) AS nativetype,
157157
CASE WHEN a.atttypmod = -1 THEN NULL ELSE a.atttypmod -4 END AS size,
158-
FALSE AS unsigned,
159158
NOT (a.attnotnull OR t.typtype = 'd' AND t.typnotnull) AS nullable,
160159
pg_catalog.pg_get_expr(ad.adbin, 'pg_catalog.pg_attrdef'::regclass)::varchar AS default,
161160
coalesce(co.contype = 'p' AND strpos(ad.adsrc, 'nextval') = 1, FALSE) AS autoincrement,

src/Database/Drivers/SqliteDriver.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ public function getColumns(string $table): array
163163
'table' => $table,
164164
'nativetype' => strtoupper($type[0]),
165165
'size' => isset($type[1]) ? (int) $type[1] : null,
166-
'unsigned' => false,
167166
'nullable' => $row['notnull'] == '0',
168167
'default' => $row['dflt_value'],
169168
'autoincrement' => (bool) preg_match($pattern, (string) $meta['sql']),
@@ -233,8 +232,6 @@ public function getForeignKeys(string $table): array
233232
$keys[$row['id']]['local'] = $row['from']; // local columns
234233
$keys[$row['id']]['table'] = $row['table']; // referenced table
235234
$keys[$row['id']]['foreign'] = $row['to']; // referenced columns
236-
$keys[$row['id']]['onDelete'] = $row['on_delete'];
237-
$keys[$row['id']]['onUpdate'] = $row['on_update'];
238235

239236
if ($keys[$row['id']]['foreign'][0] == null) {
240237
$keys[$row['id']]['foreign'] = null;

src/Database/Drivers/SqlsrvDriver.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ public function getColumns(string $table): array
152152
o.name AS [table],
153153
UPPER(t.name) AS nativetype,
154154
NULL AS size,
155-
0 AS unsigned,
156155
c.is_nullable AS nullable,
157156
OBJECT_DEFINITION(c.default_object_id) AS [default],
158157
c.is_identity AS autoincrement,
@@ -172,7 +171,6 @@ public function getColumns(string $table): array
172171
") as $row) {
173172
$row = (array) $row;
174173
$row['vendor'] = $row;
175-
$row['unsigned'] = (bool) $row['unsigned'];
176174
$row['nullable'] = (bool) $row['nullable'];
177175
$row['autoincrement'] = (bool) $row['autoincrement'];
178176
$row['primary'] = (bool) $row['primary'];

tests/Database/Reflection.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ $expectedColumns = [
5050
'table' => 'author',
5151
'nativetype' => 'INT',
5252
'size' => 11,
53-
'unsigned' => false,
5453
'nullable' => false,
5554
'default' => null,
5655
'autoincrement' => true,
@@ -61,7 +60,6 @@ $expectedColumns = [
6160
'table' => 'author',
6261
'nativetype' => 'VARCHAR',
6362
'size' => 30,
64-
'unsigned' => false,
6563
'nullable' => false,
6664
'default' => null,
6765
'autoincrement' => false,
@@ -72,7 +70,6 @@ $expectedColumns = [
7270
'table' => 'author',
7371
'nativetype' => 'VARCHAR',
7472
'size' => 100,
75-
'unsigned' => false,
7673
'nullable' => false,
7774
'default' => null,
7875
'autoincrement' => false,
@@ -83,7 +80,6 @@ $expectedColumns = [
8380
'table' => 'author',
8481
'nativetype' => 'DATE',
8582
'size' => null,
86-
'unsigned' => false,
8783
'nullable' => true,
8884
'default' => null,
8985
'autoincrement' => false,

0 commit comments

Comments
 (0)