Skip to content
Snippets Groups Projects
Commit c245e86b authored by Marcos García de La Fuente's avatar Marcos García de La Fuente
Browse files

Little changes to the opensurvey_sondage table definition

parent c2c97ec8
No related branches found
No related tags found
No related merge requests found
...@@ -27,3 +27,6 @@ ALTER TABLE `llx_opensurvey_sondage` ADD COLUMN `allow_spy` TINYINT( 1 ) UNSIGN ...@@ -27,3 +27,6 @@ ALTER TABLE `llx_opensurvey_sondage` ADD COLUMN `allow_spy` TINYINT( 1 ) UNSIGN
ALTER TABLE `llx_opensurvey_sondage` DROP COLUMN `origin` ; 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` 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;
\ No newline at end of file
...@@ -21,9 +21,9 @@ CREATE TABLE llx_opensurvey_sondage ( ...@@ -21,9 +21,9 @@ CREATE TABLE llx_opensurvey_sondage (
mail_admin VARCHAR(128), mail_admin VARCHAR(128),
nom_admin VARCHAR(64), nom_admin VARCHAR(64),
fk_user_creat INT(11) UNSIGNED NOT NULL, fk_user_creat INT(11) UNSIGNED NOT NULL,
titre TEXT, titre TEXT NOT NULL,
date_fin DATETIME, date_fin DATETIME NOT NULL,
format VARCHAR(2), format VARCHAR(2) NOT NULL,
mailsonde TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0', mailsonde TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0',
allow_comments TINYINT(1) unsigned NOT NULL DEFAULT 1, allow_comments TINYINT(1) unsigned NOT NULL DEFAULT 1,
allow_spy TINYINT(1) unsigned NOT NULL DEFAULT 1, allow_spy TINYINT(1) unsigned NOT NULL DEFAULT 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment