Open sergekiryakov opened 3 years ago
This seems to be a Bug and can be fixed in the line you referenced by correcting the line into this one:
$this->string .= (strlen($this->array['defaultValue']['expression']) == 0) ? '' : " DEFAULT " . $this->array['defaultValue']['expression'] . " ";
The strlen() has to look into the according tree.
https://github.com/c006/yii2-migration-utility/blob/5b89422facc97ef5e5364f2cdcea6fd31f5c65de/assets/AppUtility.php#L105 strlen() returns params error