mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-06 14:19:23 +08:00
Fix #18303: Fix creating migration issue for column methods used after defaultValues
This commit is contained in:
@ -581,7 +581,7 @@ class MigrateController extends BaseMigrateController
|
||||
protected function splitFieldIntoChunks($field)
|
||||
{
|
||||
$hasDoubleQuotes = false;
|
||||
preg_match_all('/defaultValue\(.*?:.*?\)/', $field, $matches);
|
||||
preg_match_all('/defaultValue\(["\'].*?:?.*?["\']\)/', $field, $matches, PREG_SET_ORDER, 0);
|
||||
if (isset($matches[0][0])) {
|
||||
$hasDoubleQuotes = true;
|
||||
$originalDefaultValue = $matches[0][0];
|
||||
|
Reference in New Issue
Block a user