From: Vincent Vanwaelscappel Date: Thu, 6 Jun 2019 15:04:34 +0000 (+0200) Subject: #2810 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=23293d494b471cbf3aa6d4eef7a9323eda9a0ad4;p=cubist_cms-back.git #2810 --- diff --git a/src/app/Magic/Fields/Field.php b/src/app/Magic/Fields/Field.php index 4f5e15d..a96d39e 100644 --- a/src/app/Magic/Fields/Field.php +++ b/src/app/Magic/Fields/Field.php @@ -126,7 +126,7 @@ class Field $table->addColumn($name, CubistMagicAbstractModel::toDoctrineType($this->getDatabaseType()), array_merge( - ['allow_null' => $this->getAttribute('allow_null', true)], + ['nullable' => $this->getAttribute('allow_null', true)], $this->_databaseAttributes) ); if ($this->_databaseUnique) {