Skip to content

Commit

Permalink
Unsigned int mysql 8 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
lulco authored Jan 16, 2023
1 parent 869df3d commit 79eb27f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Database/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private function getColumnSettings(array $column): array

private function getType(array $column): string
{
$type = strtolower($column['nativetype']);
$type = explode(' ', strtolower($column['nativetype']))[0];
$types = [
'bool' => 'boolean',
'int' => 'integer',
Expand Down
2 changes: 1 addition & 1 deletion tests/Behavior/CreateStructureBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected function createSimpleTable(): void
->addColumn('created_at', 'datetime')
->addColumn('title', 'string')
->addColumn('type', 'string', ['null' => true, 'default' => 'type1'])
->addColumn('sorting', 'integer', ['null' => true, 'length' => 10])
->addColumn('sorting', 'integer', ['null' => true, 'length' => 10, 'signed' => false])
->addColumn('price', 'double', ['length' => 10, 'decimals' => 2])
;
$migrationTable->create();
Expand Down

0 comments on commit 79eb27f

Please sign in to comment.