From fc7d3d47713ffd7cc3d47cea85ca1c274ec03fd2 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:39:22 +0100
Subject: [PATCH] Modified migration script to not remove columns

---
 .../install/mysql/migration/3.5.0-3.6.0.sql   | 24 +++++++++----------
 1 file changed, 12 insertions(+), 12 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 01fbbd4ddeb..4e0b0192d79 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
@@ -18,15 +18,15 @@
 -- -- VMYSQL4.1 DELETE FROM llx_usergroup_user      WHERE fk_usergroup NOT IN (SELECT rowid from llx_usergroup);
 
 ALTER TABLE llx_bookmark ADD COLUMN entity integer DEFAULT 1 NOT NULL;
-ALTER TABLE  `llx_opensurvey_sondage` ADD COLUMN `allow_comments` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT 1 AFTER  `canedit` ;
-ALTER TABLE  `llx_opensurvey_sondage` DROP COLUMN `survey_link_visible` ;
-ALTER TABLE  `llx_opensurvey_sondage` DROP INDEX  `idx_id_sondage_admin` ;
-ALTER TABLE  `llx_opensurvey_sondage` DROP COLUMN `id_sondage_admin` ;
-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';
-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
+ALTER TABLE  llx_opensurvey_sondage ADD COLUMN allow_comments TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT 1 AFTER  canedit ;
+-- ALTER TABLE  llx_opensurvey_sondage DROP COLUMN survey_link_visible ;
+ALTER TABLE  llx_opensurvey_sondage DROP INDEX  idx_id_sondage_admin ;
+-- ALTER TABLE  llx_opensurvey_sondage DROP COLUMN id_sondage_admin ;
+-- 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';
+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
-- 
GitLab