From f48e61c8b94f8095f875d4e4f1377bdcdd7da308 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 6 Jun 2019 17:10:47 +0200 Subject: [PATCH] #2810 --- src/app/Magic/Fields/Field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5