Little changes to the opensurvey_sondage table definition

This commit is contained in:
Marcos García de La Fuente 2014-01-06 05:17:02 +01:00
parent c2c97ec82a
commit c245e86b60
2 changed files with 8 additions and 5 deletions

View File

@ -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';
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;

View File

@ -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;