From: Vincent Vanwaelscappel Date: Thu, 6 Jun 2019 15:10:47 +0000 (+0200) Subject: #2810 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f48e61c8b94f8095f875d4e4f1377bdcdd7da308;p=cubist_cms-back.git #2810 --- diff --git a/src/app/Magic/Fields/Field.php b/src/app/Magic/Fields/Field.php index a96d39e..cd3af0e 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( - ['nullable' => $this->getAttribute('allow_null', true)], + ['notnull' => !$this->getAttribute('allow_null', true)], $this->_databaseAttributes) ); if ($this->_databaseUnique) {