1
0
Fork 0
mirror of synced 2024-08-29 17:03:10 +12:00

fix: add defaults to collection attributes.

This commit is contained in:
ItzNotABug 2024-06-14 15:37:30 +05:30
parent f91a8a9135
commit 4fd94fd7b1

View file

@ -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'],