Skip to content

Commit a4c9098

Browse files
committed
:octocat: fix for the fix of the DEFAULT_TYPE fix 🤦
1 parent 2026a97 commit a4c9098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Query/QueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function primaryKey(string $field, string $dir = null):CreateTable{
158158
/** @inheritdoc */
159159
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{
160160

161-
if(is_scalar($defaultValue) && $defaultType !== null){
161+
if(is_scalar($defaultValue) && $defaultType === null){
162162
$defaultType = 'USER_DEFINED';
163163
}
164164

0 commit comments

Comments
 (0)