Fix migration of boxes
This commit is contained in:
parent
319fe108fc
commit
27c7950417
@ -34,7 +34,7 @@ class box_members_by_type extends ModeleBoxes
|
||||
{
|
||||
public $boxcode = "box_members_by_type";
|
||||
public $boximg = "object_user";
|
||||
public $boxlabel = "BoxMembersByType";
|
||||
public $boxlabel = "BoxTitleMembersByType";
|
||||
public $depends = array("adherent");
|
||||
|
||||
/**
|
||||
|
||||
@ -34,7 +34,7 @@ class box_members_subscriptions_by_year extends ModeleBoxes
|
||||
{
|
||||
public $boxcode = "box_members_subscriptions_by_year";
|
||||
public $boximg = "object_user";
|
||||
public $boxlabel = "BoxMembersSubscriptionsByYear";
|
||||
public $boxlabel = "BoxTitleMembersSubscriptionsByYear";
|
||||
public $depends = array("adherent");
|
||||
|
||||
/**
|
||||
|
||||
@ -266,8 +266,8 @@ UPDATE llx_payment_salary as ps SET ps.ref = ps.rowid WHERE ps.ref IS NULL;
|
||||
ALTER TABLE llx_salary CHANGE paye paye smallint default 0 NOT NULL;
|
||||
|
||||
|
||||
DELETE FROM llx_boxes WHERE box_id IN (SELECT rowid FROM llx_boxes_def WHERE file IN ('box_ticket_by_severity.php', 'box_nb_ticket_last_x_days.php', 'box_nb_tickets_type.php', 'box_new_vs_close_ticket.php'));
|
||||
DELETE FROM llx_boxes_def WHERE file IN ('box_ticket_by_severity.php', 'box_nb_ticket_last_x_days.php', 'box_nb_tickets_type.php', 'box_new_vs_close_ticket.php');
|
||||
DELETE FROM llx_boxes WHERE box_id IN (SELECT rowid FROM llx_boxes_def WHERE file IN ('box_graph_ticket_by_severity', 'box_ticket_by_severity.php', 'box_nb_ticket_last_x_days.php', 'box_nb_tickets_type.php', 'box_new_vs_close_ticket.php'));
|
||||
DELETE FROM llx_boxes_def WHERE file IN ('box_graph_ticket_by_severity', 'box_ticket_by_severity.php', 'box_nb_ticket_last_x_days.php', 'box_nb_tickets_type.php', 'box_new_vs_close_ticket.php');
|
||||
|
||||
-- VMYSQL4.1 INSERT INTO llx_boxes_def (file, entity) SELECT 'box_graph_ticket_by_severity.php', 1 FROM DUAL WHERE NOT EXISTS (SELECT * FROM llx_boxes_def WHERE file = 'box_graph_ticket_by_severity.php' AND entity = 1);
|
||||
-- VMYSQL4.1 INSERT INTO llx_boxes_def (file, entity) SELECT 'box_graph_nb_ticket_last_x_days.php', 1 FROM DUAL WHERE NOT EXISTS (SELECT * FROM llx_boxes_def WHERE file = 'box_graph_nb_ticket_last_x_days.php' AND entity = 1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user