fix: add defaults
to collection attributes.
This commit is contained in:
parent
f91a8a9135
commit
4fd94fd7b1
1 changed files with 2 additions and 1 deletions
|
@ -239,7 +239,7 @@ abstract class Migration
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates colletion from the config collection.
|
* Creates collection from the config collection.
|
||||||
*
|
*
|
||||||
* @param string $id
|
* @param string $id
|
||||||
* @param string|null $name
|
* @param string|null $name
|
||||||
|
@ -266,6 +266,7 @@ abstract class Migration
|
||||||
'type' => $attribute['type'],
|
'type' => $attribute['type'],
|
||||||
'size' => $attribute['size'],
|
'size' => $attribute['size'],
|
||||||
'required' => $attribute['required'],
|
'required' => $attribute['required'],
|
||||||
|
'default' => $attribute['default'] ?? null,
|
||||||
'signed' => $attribute['signed'],
|
'signed' => $attribute['signed'],
|
||||||
'array' => $attribute['array'],
|
'array' => $attribute['array'],
|
||||||
'filters' => $attribute['filters'],
|
'filters' => $attribute['filters'],
|
||||||
|
|
Loading…
Reference in a new issue