From 79631b4c42026ed254630c0616eb6bc15470e639 Mon Sep 17 00:00:00 2001 From: karsasmus Date: Wed, 19 Apr 2017 07:52:17 +0200 Subject: [PATCH] allow null values in caption --- app/source/classes/Models/Ddl/Upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/source/classes/Models/Ddl/Upload.php b/app/source/classes/Models/Ddl/Upload.php index 636ceb8..44744ee 100644 --- a/app/source/classes/Models/Ddl/Upload.php +++ b/app/source/classes/Models/Ddl/Upload.php @@ -20,7 +20,7 @@ public function __construct($t = null){ $this->columns = [ new \Zend\Db\Sql\Ddl\Column\Integer('id', false, null, ['auto_increment' => true]), - new \Zend\Db\Sql\Ddl\Column\Varchar('caption', 191), + new \Zend\Db\Sql\Ddl\Column\Varchar('caption', 191, true), new \Zend\Db\Sql\Ddl\Column\Datetime('created'), new \Zend\Db\Sql\Ddl\Column\Varchar('path', 191), new \Zend\Db\Sql\Ddl\Column\Varchar('filename', 90),