fix #15384 migration

This commit is contained in:
lmarcouiller 2020-12-03 11:04:24 +01:00
parent 5c3c3d7608
commit 647294e88e

View File

@ -439,8 +439,6 @@ INSERT INTO llx_c_product_nature (code, label, active) VALUES (1, 'Finished', 1)
ALTER TABLE llx_product MODIFY COLUMN finished tinyint DEFAULT NULL;
ALTER TABLE llx_product ADD CONSTRAINT fk_product_finished FOREIGN KEY (finished) REFERENCES llx_c_product_nature (code);
INSERT INTO llx_boxes_def (file) VALUES ('box_dolibarr_state_board.php');
INSERT INTO llx_boxes (box_id, position, box_order, maxline, params) VALUES ((SELECT b.rowid FROM llx_boxes_def as b WHERE file = 'box_dolibarr_state_board.php'), 0, 0, NULL, NULL);
-- MIGRATION TO DO AFTER RENAMING AN OBJECT
-- drop constraint
@ -543,3 +541,4 @@ CREATE TABLE llx_session(
user_agent varchar(128) NULL
)ENGINE=innodb;
INSERT INTO llx_boxes_def (file) VALUES ('box_dolibarr_state_board.php');