2
0
forked from Wavyzz/dolibarr

Fix: Error when creating 2 external rss boxes.

This commit is contained in:
Laurent Destailleur
2010-08-13 23:34:34 +00:00
parent fd23d97793
commit 46b35d0ee0
4 changed files with 14 additions and 4 deletions

View File

@@ -314,3 +314,8 @@ 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

@@ -18,4 +18,8 @@ alter table llx_product_price add column recuperableonly integer NOT NULL DEFAUL
alter table llx_product change column envente tosell tinyint DEFAULT 1; alter table llx_product change column envente tosell tinyint DEFAULT 1;
alter table llx_product add column tobuy tinyint DEFAULT 1 after tosell; alter table llx_product add column tobuy tinyint DEFAULT 1 after tosell;
alter table llx_product_price change column envente tosell tinyint DEFAULT 1; alter table llx_product_price change column envente tosell tinyint DEFAULT 1;
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,5 @@
-- =========================================================================== -- ===========================================================================
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