Fix: use allowed database types
This commit is contained in:
parent
5657bd7793
commit
7c01fd98b3
@ -18,15 +18,18 @@
|
|||||||
-- -- VMYSQL4.1 DELETE FROM llx_usergroup_user WHERE fk_usergroup NOT IN (SELECT rowid from llx_usergroup);
|
-- -- 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_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 ADD COLUMN allow_comments tinyint NOT NULL DEFAULT 1 AFTER canedit;
|
||||||
-- ALTER TABLE llx_opensurvey_sondage DROP COLUMN survey_link_visible;
|
-- 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 INDEX idx_id_sondage_admin;
|
||||||
-- ALTER TABLE llx_opensurvey_sondage DROP COLUMN 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 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 ADD COLUMN allow_spy tinyint NOT NULL DEFAULT 1 AFTER allow_comments;
|
||||||
-- 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 integer 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 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 titre titre TEXT NOT NULL;
|
||||||
ALTER TABLE llx_opensurvey_sondage CHANGE COLUMN date_fin date_fin DATETIME 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;
|
ALTER TABLE llx_opensurvey_sondage CHANGE COLUMN format format VARCHAR(2) NOT NULL;
|
||||||
|
|
||||||
|
ALTER TABLE llx_facture_rec.sql MODIFY COLUMN usenewprice INTEGER DEFAULT 0;
|
||||||
@ -46,11 +46,11 @@ create table llx_facture_rec
|
|||||||
note_private text,
|
note_private text,
|
||||||
note_public text,
|
note_public text,
|
||||||
|
|
||||||
usenewprice integer,
|
usenewprice integer DEFAULT 0,
|
||||||
frequency integer,
|
frequency integer,
|
||||||
unit_frequency varchar(2) DEFAULT 'd',
|
unit_frequency varchar(2) DEFAULT 'd',
|
||||||
date_when datetime DEFAULT NULL,
|
date_when datetime DEFAULT NULL, -- date for next gen (when an invoice is generated, this field must be updated with next date)
|
||||||
date_last_gen datetime DEFAULT NULL,
|
date_last_gen datetime DEFAULT NULL, -- date for last gen (date with last successfull generation of invoice)
|
||||||
nb_gen_done integer DEFAULT NULL,
|
nb_gen_done integer DEFAULT NULL, -- nb of generation done (when an invoice is generated, this field must incremented)
|
||||||
nb_gen_max integer DEFAULT NULL
|
nb_gen_max integer DEFAULT NULL -- maximum number of generation
|
||||||
)ENGINE=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
@ -20,13 +20,13 @@ CREATE TABLE llx_opensurvey_sondage (
|
|||||||
commentaires text,
|
commentaires text,
|
||||||
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 integer NOT NULL,
|
||||||
titre TEXT NOT NULL,
|
titre TEXT NOT NULL,
|
||||||
date_fin DATETIME NOT NULL,
|
date_fin DATETIME NOT NULL,
|
||||||
format VARCHAR(2) NOT NULL,
|
format VARCHAR(2) NOT NULL,
|
||||||
mailsonde TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0',
|
mailsonde tinyint NOT NULL DEFAULT 0,
|
||||||
allow_comments TINYINT(1) unsigned NOT NULL DEFAULT 1,
|
allow_comments tinyint NOT NULL DEFAULT 1,
|
||||||
allow_spy TINYINT(1) unsigned NOT NULL DEFAULT 1,
|
allow_spy tinyint NOT NULL DEFAULT 1,
|
||||||
tms TIMESTAMP,
|
tms TIMESTAMP,
|
||||||
sujet TEXT
|
sujet TEXT
|
||||||
) ENGINE=InnoDB;
|
) ENGINE=InnoDB;
|
||||||
Loading…
Reference in New Issue
Block a user