Skip to content

Commit

Permalink
:octocat: fix for the fix of the DEFAULT_TYPE fix 🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Aug 1, 2019
1 parent 2026a97 commit a4c9098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Query/QueryBuilder.php
Expand Up @@ -158,7 +158,7 @@ public function primaryKey(string $field, string $dir = null):CreateTable{
/** @inheritdoc */
public function field(string $name, string $type, $length = null, string $attribute = null, string $collation = null, bool $isNull = null, string $defaultType = null, $defaultValue = null, string $extra = null):CreateTable{

if(is_scalar($defaultValue) && $defaultType !== null){
if(is_scalar($defaultValue) && $defaultType === null){
$defaultType = 'USER_DEFINED';
}

Expand Down

0 comments on commit a4c9098

Please sign in to comment.