fix: migration handle default and requried attributes
This commit is contained in:
parent
14752d528b
commit
ba50075fff
|
@ -660,6 +660,10 @@ class V11 extends Migration
|
|||
|
||||
$size = $type === Database::VAR_STRING ? 65_535 : 0; // Max size of text in MariaDB
|
||||
|
||||
if ($required) {
|
||||
$default = null;
|
||||
}
|
||||
|
||||
$attributes[$key] = [
|
||||
'$collection' => $collectionId,
|
||||
'$id' => $id,
|
||||
|
|
Loading…
Reference in a new issue