diff --git a/mysql/migration/2.2.0-2.4.0.sql b/mysql/migration/2.2.0-2.4.0.sql index c0959b9cfe0..6a2255fda7d 100644 --- a/mysql/migration/2.2.0-2.4.0.sql +++ b/mysql/migration/2.2.0-2.4.0.sql @@ -26,6 +26,11 @@ update llx_const set name='SOCIETE_CODEFOURNISSEUR_ADDON' where name='CODEFOURNI delete from llx_const where name='CODECLIENT_ADDON'; delete from llx_const where name='CODEFOURNISSEUR_ADDON'; +alter table llx_const add tms timestamp; +update llx_const set tms=sysdate() where tms is null; +update llx_const set tms=sysdate() where tms <= 0; + + alter table llx_document_model modify type varchar(20) NOT NULL; DELETE FROM llx_rights_def WHERE module = 'menudb'; diff --git a/mysql/tables/llx_const.sql b/mysql/tables/llx_const.sql index d1c4867123a..d8d703e01e1 100644 --- a/mysql/tables/llx_const.sql +++ b/mysql/tables/llx_const.sql @@ -31,6 +31,6 @@ create table llx_const type enum('yesno','texte','chaine'), visible tinyint DEFAULT 1 NOT NULL, note text, - + tms timestamp UNIQUE INDEX(name) )type=innodb;