Skip to content

Commit 148fb3b

Browse files
author
Noé
committed
FIX: Add also index on llx_user on migrate
1 parent b022c14 commit 148fb3b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

htdocs/install/mysql/migration/17.0.0-18.0.0.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ insert into llx_c_action_trigger (code,label,description,elementtype,rang) value
7272
insert into llx_c_action_trigger (code,label,description,elementtype,rang) values ('PARTNERSHIP_SENTBYMAIL','Mails sent from partnership file','Executed when you send email from partnership file','partnership',58004);
7373
insert into llx_c_action_trigger (code,label,description,elementtype,rang) values ('PARTNERSHIP_DELETE','Partnership deleted','Executed when a partnership is deleted','partnership',58006);
7474

75+
-- perf User::fetchAll
76+
ALTER TABLE llx_user ADD INDEX idx_user_status_employee(statut, employee);
7577

7678
-- amount was removed in v12
7779
ALTER TABLE llx_facture DROP COLUMN amount;
@@ -721,3 +723,4 @@ ALTER TABLE llx_user CHANGE COLUMN tms tms timestamp DEFAULT CURRENT_TIMESTAMP O
721723
ALTER TABLE llx_salary_extrafields CHANGE COLUMN tms tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
722724
-- 15.0 -> 16.0 rename llx_advtargetemailing to llx_mailing_advtarget
723725
ALTER TABLE llx_mailing_advtarget CHANGE COLUMN tms tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
726+

htdocs/install/mysql/tables/llx_user.key.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
ALTER TABLE llx_user ADD UNIQUE INDEX uk_user_login (login, entity);
2323

2424
ALTER TABLE llx_user ADD INDEX idx_user_fk_societe (fk_soc);
25+
26+
-- perf User::fetchAll
2527
ALTER TABLE llx_user ADD INDEX idx_user_status_employee(statut, employee);
2628

2729
ALTER TABLE llx_user ADD UNIQUE INDEX uk_user_fk_socpeople (fk_socpeople);

0 commit comments

Comments
 (0)