From 4e021c2bc36813b5beb79e17e9620510c6358c7a Mon Sep 17 00:00:00 2001
From: Thomas Citharel <tcit@tcit.fr>
Date: Wed, 21 Mar 2018 15:27:57 +0100
Subject: [PATCH] Remove the check on Valuemax

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
---
 .../Framadate/Migration/AddColumn_ValueMax_In_poll_For_1_1.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/app/classes/Framadate/Migration/AddColumn_ValueMax_In_poll_For_1_1.php b/app/classes/Framadate/Migration/AddColumn_ValueMax_In_poll_For_1_1.php
index 6715f9b3..8b1caa22 100644
--- a/app/classes/Framadate/Migration/AddColumn_ValueMax_In_poll_For_1_1.php
+++ b/app/classes/Framadate/Migration/AddColumn_ValueMax_In_poll_For_1_1.php
@@ -65,7 +65,6 @@ class AddColumn_ValueMax_In_poll_For_1_1 implements Migration {
     private function alterPollTable(\PDO $pdo) {
         $pdo->exec('
         ALTER TABLE `' . Utils::table('poll') . '`
-        ADD `ValueMax` TINYINT,
-	ADD CHECK (ValueMax > 0)');
+        ADD `ValueMax` TINYINT NULL;');
     }
 }
-- 
GitLab