Fix: Error when creating 2 external rss boxes.

This commit is contained in:
Laurent Destailleur 2010-08-13 23:34:23 +00:00
parent ff6916a5a3
commit 382c74fec2
3 changed files with 9 additions and 3 deletions

View File

@ -314,3 +314,6 @@ INSERT INTO llx_c_forme_juridique (fk_pays, code, libelle, active) VALUES (23, '
delete from llx_const where name='USER_PASSWORD_GENERATED' and value='default'; delete from llx_const where name='USER_PASSWORD_GENERATED' and value='default';
ALTER TABLE llx_boxes_def DROP INDEX uk_boxes_def;
ALTER TABLE llx_boxes_def MODIFY note varchar(255);
ALTER TABLE llx_boxes_def ADD UNIQUE INDEX uk_boxes_def (file, entity, note);

View File

@ -20,4 +20,7 @@
-- =========================================================================== -- ===========================================================================
ALTER TABLE llx_boxes_def ADD UNIQUE INDEX uk_boxes_def (file, entity); -- We need to include note to allow several entries for external rss module
ALTER TABLE llx_boxes_def ADD UNIQUE INDEX uk_boxes_def (file, entity, note);

View File

@ -25,11 +25,11 @@ create table llx_boxes_def
file varchar(255) NOT NULL, file varchar(255) NOT NULL,
entity integer DEFAULT 1 NOT NULL, -- multi company id entity integer DEFAULT 1 NOT NULL, -- multi company id
tms timestamp, tms timestamp,
note text note varchar(255)
)type=innodb; )type=innodb;
-- --
-- List of codes for the field entity -- List of codes for the field "entity"
-- --
-- 1 : first company boxes -- 1 : first company boxes
-- 2 : second company boxes -- 2 : second company boxes