From c245e86b604edd55d29ce8e4174ef0b6c934f019 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?=
 <marcosgdf@gmail.com>
Date: Mon, 6 Jan 2014 05:17:02 +0100
Subject: [PATCH] Little changes to the opensurvey_sondage table definition

---
 htdocs/install/mysql/migration/3.5.0-3.6.0.sql         | 5 ++++-
 htdocs/install/mysql/tables/llx_opensurvey_sondage.sql | 8 ++++----
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/htdocs/install/mysql/migration/3.5.0-3.6.0.sql b/htdocs/install/mysql/migration/3.5.0-3.6.0.sql
index 65f8064f366..01fbbd4ddeb 100755
--- a/htdocs/install/mysql/migration/3.5.0-3.6.0.sql
+++ b/htdocs/install/mysql/migration/3.5.0-3.6.0.sql
@@ -26,4 +26,7 @@ ALTER TABLE  `llx_opensurvey_sondage` DROP COLUMN `canedit` ;
 ALTER TABLE  `llx_opensurvey_sondage` ADD COLUMN `allow_spy` TINYINT( 1 ) UNSIGNED NOT NULL AFTER  `allow_comments` ;
 ALTER TABLE  `llx_opensurvey_sondage` DROP COLUMN `origin` ;
 ALTER TABLE  `llx_opensurvey_sondage` ADD COLUMN `fk_user_creat` INT( 11 ) UNSIGNED NOT NULL AFTER  `nom_admin` ;
-ALTER TABLE  `llx_opensurvey_sondage` CHANGE COLUMN `mailsonde`  `mailsonde` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT  '0';
\ No newline at end of file
+ALTER TABLE  `llx_opensurvey_sondage` CHANGE COLUMN `mailsonde`  `mailsonde` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT  '0';
+ALTER TABLE  `llx_opensurvey_sondage` CHANGE COLUMN `titre`  `titre` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
+ALTER TABLE  `llx_opensurvey_sondage` CHANGE COLUMN `date_fin`  `date_fin` DATETIME NOT NULL;
+ALTER TABLE  `llx_opensurvey_sondage` CHANGE COLUMN `format`  `format` VARCHAR( 2 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
\ No newline at end of file
diff --git a/htdocs/install/mysql/tables/llx_opensurvey_sondage.sql b/htdocs/install/mysql/tables/llx_opensurvey_sondage.sql
index 6301c22a2b3..a8ee5031dc5 100644
--- a/htdocs/install/mysql/tables/llx_opensurvey_sondage.sql
+++ b/htdocs/install/mysql/tables/llx_opensurvey_sondage.sql
@@ -21,12 +21,12 @@ CREATE TABLE llx_opensurvey_sondage (
        mail_admin VARCHAR(128),
        nom_admin VARCHAR(64),
 	   fk_user_creat INT(11) UNSIGNED NOT NULL,
-       titre TEXT,
-       date_fin DATETIME,
-       format VARCHAR(2),
+       titre TEXT NOT NULL,
+       date_fin DATETIME NOT NULL,
+       format VARCHAR(2) NOT NULL,
        mailsonde TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0',
        allow_comments TINYINT(1) unsigned NOT NULL DEFAULT 1,
 	   allow_spy TINYINT(1) unsigned NOT NULL DEFAULT 1,
        tms TIMESTAMP,
 	   sujet TEXT
-) ENGINE=InnoDB;
+) ENGINE=InnoDB;
\ No newline at end of file
-- 
GitLab