2
0
forked from Wavyzz/dolibarr

Suite dev pour grer le drag and drop des boxes ainsi que liste des box propres a chaque user

This commit is contained in:
Laurent Destailleur
2006-11-01 15:15:14 +00:00
parent 245dea6f48
commit 67b6803078
8 changed files with 152 additions and 79 deletions

View File

@@ -24,6 +24,6 @@
-- V4 DELETE llx_boxes FROM llx_boxes LEFT JOIN llx_boxes_def ON llx_boxes.box_id = llx_boxes_def.rowid WHERE llx_boxes_def.rowid IS NULL;
ALTER TABLE llx_boxes ADD INDEX idx_boxes_boxid (box_id);
-- V4 ALTER TABLE llx_boxes ADD CONSTRAINT fk_boxes_box_id FOREIGN KEY (box_id) REFERENCES llx_boxes_def (rowid);
ALTER TABLE llx_boxes ADD CONSTRAINT fk_boxes_box_id FOREIGN KEY (box_id) REFERENCES llx_boxes_def (rowid);
ALTER TABLE llx_boxes ADD INDEX idx_boxes_fk_user (fk_user);

View File

@@ -30,5 +30,5 @@ create table llx_boxes
box_id integer NOT NULL,
position smallint NOT NULL,
box_order smallint default 0 NOT NULL,
fk_user integer
fk_user integer default 0
)type=innodb;

View File

@@ -24,4 +24,4 @@
-- V4 DELETE llx_commandedet FROM llx_commandedet LEFT JOIN llx_commande ON llx_commandedet.fk_commande = llx_commande.rowid WHERE llx_commande.rowid IS NULL;
ALTER TABLE llx_commandedet ADD INDEX idx_commandedet_fk_commande (fk_commande);
ALTER TABLE llx_commandedet ADD CONSTRAINT fk_commandedet_fk_commande FOREIGN KEY (fk_commande) REFERENCES llx_commande (rowid);
-- V4 ALTER TABLE llx_commandedet ADD CONSTRAINT fk_commandedet_fk_commande FOREIGN KEY (fk_commande) REFERENCES llx_commande (rowid);