Skip to content

Commit

Permalink
Merge pull request #1 from vendi-advertising/cjh-add-unsigned-support
Browse files Browse the repository at this point in the history
Added support for UNSIGNED with TinyInt
  • Loading branch information
Smeagolworms4 authored Oct 7, 2019
2 parents b1419f2 + 451d551 commit 71ff11a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TinyInt.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class TinyInt extends Type {
const TINYINT = 'tinyint';

public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) {
return 'TINYINT';
return 'TINYINT' . ( ! empty($fieldDeclaration['unsigned']) ? ' UNSIGNED' : '');
}

public function getName() {
Expand Down

0 comments on commit 71ff11a

Please sign in to comment.