1
0
Fork 0
mirror of synced 2024-05-20 12:42:39 +12:00

fix: migration handle default and requried attributes

This commit is contained in:
Torsten Dittmann 2021-12-30 10:51:16 +01:00
parent 14752d528b
commit ba50075fff

View file

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