Commit Graph

2942 Commits

Author SHA1 Message Date
Aloïs Micard
0cfd16d8db Allow tweaking of the index that MySQL use when searching products (#29934)
* Allow tweaking of the index that MySQL use when searching products

Sometimes when working with large dataset with many entities the MySQL engine does not pick-up the right index.
This is especially true when doing a search over the reference because the LIKE '%%' prevent the uk_product_label from being chosen.

This PR aims to improve this situation by doing the following :

- Adding a simple index on entity column.
- Adding an hidden constant to force the index being used when searching products.

Performances over a 8M products dataset shows a reduction of 2/3 execution time.

* Add missing global $conf

* Fix wrong usage of getDolGlobalString()

* Finalise fix

* Add more indexes

* Rework indexes
2024-06-08 19:35:28 +02:00
Maxime Kohlhaas
5c6061ec0a NEW : add indexes on chargesociales table (#29911)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-06-08 02:34:58 +02:00
HENRY Florian
ebab48ac0e fix: fix SQL new install (#29861)
* fix: SQL fresh install script

* fix: SQL fresh install script

* fix perms files

* fix: travis CI

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-06-08 00:27:50 +02:00
Laurent Destailleur
42470a113e Doc 2024-06-04 11:15:56 +02:00
jyhere
57f35d7774 FIX: default element_type should be 'commande' (e.g Commande::) (#29791)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-06-03 13:51:36 +02:00
Laurent Destailleur
6e06f179f6 Missing field 2024-06-03 11:50:40 +02:00
Laurent Destailleur
e2e96d4d75 Debug v20 2024-05-29 01:10:56 +02:00
jyhere
90eb4ad840 FIX: Db error cannot add foreign key constraint on societe_commerciaux table (#29706) 2024-05-21 18:01:13 +02:00
Laurent Destailleur
9d9d1b245c Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-05-13 03:54:36 +02:00
HENRY Florian
a6caef2dcf NEW : Add default User roles for Thirdparties (#29242)
* firstStepBDD

* revert bad changes

* add new column for user roles in societe_commerciaux table

* merge

* Update 19.0.0-20.0.0.sql

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-05-13 03:25:05 +02:00
Laurent Destailleur
c8c0fe5a20 Doc 2024-05-13 03:18:30 +02:00
Laurent Destailleur
1e2e9a0875 Doc 2024-05-13 03:00:31 +02:00
Laurent Destailleur
87c445bbf1 Add website page type for ajax 2024-05-12 12:20:00 +02:00
Laurent Destailleur
d90341af62 More complete db structure for online signature 2024-05-05 01:27:32 +02:00
Laurent Destailleur
28887963be Fix missing the unique keys on category table 2024-05-05 00:30:14 +02:00
lamrani abdelwadoud
62f513ea3e add column to expedition table (#29561)
* add column to expedition table

* add to table also and change default value
2024-05-03 13:16:53 +02:00
Laurent Destailleur
c0784ac9d6 Debug v20 2024-04-30 00:28:47 +02:00
Frédéric FRANCE
6da59ca0c0 fix fichinter_rec (#29537)
* fix fichinter_rec

* fix fichinter_rec

* fix fichinter_rec
2024-04-29 22:53:43 +02:00
Eric
ea9a6c0162 NEW add relation type on element_element (#29329)
* add relation type on element_element

* add column on migration 19 -> 20
2024-04-29 11:29:32 +02:00
Laurent Destailleur
9e654e65dd Debug v20 2024-04-29 11:04:19 +02:00
Laurent Destailleur
f156610572 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-04-27 05:03:15 +02:00
Laurent Destailleur
57b2b90730 Remove field egroupware_id that seems never itinialised/used 2024-04-22 14:50:25 +02:00
Laurent Destailleur
08f43cbd42 Suffix more tables to have more tables created only if needed. 2024-04-14 01:52:02 +02:00
Laurent Destailleur
00716ae41a Doc 2024-04-14 01:30:23 +02:00
Zephyriony
6f524405af QUAL Rename column fk_origin_line on shipment lines into fk_elementdet to match a generic use. (#28989)
* Update expedition.class.php 

Adapting the query and code to the new table format

* Update llx_expeditiondet.sql

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update llx_expeditiondet.sql

* Update expedition.class.php

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* Update expedition.class.php

* Update expedition.class.php

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* Update 19.0.0-20.0.0.sql

---------

Co-authored-by: sonikf <93765174+sonikf@users.noreply.github.com>
2024-04-08 12:44:49 +02:00
Regis Houssin
68eb5e409a NEW module user rights enhancement (#29150)
* NEW module user rights enhancement

* FIX syntax error

* FIX fuck

* FIX syntax error

* FIX Add label with the current language (key or with PermissionXXX)

* FIX wrong test

* FIX optimize

* FIX doc

* FIX add class "Rights" for constant

* FIX replace with constants

* FIX missing constant

* FIX wrong check

* TODO sql error : data too long for column 'libelle'

* FIX syntax error

* FIX synax error "the return"... i'll be back

* FIX use operator with double question mark

* FIX add comment

* FIX just remplace integer with constant

* FIX remove unused code

* FIX add an example

* FIX remove the possibility to have entity = 0 (too complicated)

* FIX perms must not be empty

* FIX sql syntax error

* FIX phpstan undefined property DolibarrModules::$modules

* FIX same fix of frederic34

* Update llx_rights_def.sql

* Update DolibarrModules.class.php

* Update DolibarrModules.class.php

* Update DolibarrModules.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-08 11:40:02 +02:00
G-ladal
12ee6d2820 Add entity to bookcal (#29212)
* [New] prepare bookcal DB for multicompany

Add entity to calendar and availability tables

* Fix propagate bookcal mods to main tables

add entity field for bookcal to install scripts (not only migration)

* add entity to bookcal_calendar only

as per requested, add entity to bookcal_calendar only

	modified:   htdocs/install/mysql/migration/19.0.0-20.0.0.sql
	modified:   htdocs/install/mysql/tables/llx_bookcal_calendar-bookcal.sql

* Revert changes on availabilities table
2024-04-05 10:36:30 +02:00
Laurent Destailleur
49e7f0a215 Add ref_ext on project 2024-04-02 11:17:06 +02:00
jyhere
18eba71973 FIX: supplier proposaldet ref_fourn size
on create table too
2024-03-29 13:19:32 +01:00
Laurent Destailleur
f52e57f796 Debug v20 2024-03-25 12:14:25 +01:00
Laurent Destailleur
922f30eceb Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-03-21 15:38:11 +01:00
Laurent Destailleur
9ad120df6b Better alignment of llx_expeditiondet with llx_receptiondet_batch 2024-03-20 12:26:15 +01:00
Laurent Destailleur
e6f7ace4be Update llx_expeditiondet.sql 2024-03-20 12:08:52 +01:00
Laurent Destailleur
277acdd523 Update llx_expeditiondet.sql 2024-03-20 12:07:42 +01:00
Zephyriony
4a1ef921af Update llx_expeditiondet.sql 2024-03-20 08:09:40 +01:00
Zephyriony
121f2aaa5f Update llx_expeditiondet.sql 2024-03-20 08:09:18 +01:00
Zephyriony
b061b6309a Update llx_expeditiondet.sql 2024-03-20 08:08:27 +01:00
Laurent Destailleur
9796dd38bc Doc 2024-03-20 01:17:24 +01:00
Christophe Battarel
446b574de5 renaming of columns impact db access 2024-03-19 15:49:42 +01:00
Laurent Destailleur
57e2aea255 Update llx_ticket-ticket.sql 2024-03-19 01:52:03 +01:00
Hystepik
d82729e49d New data struture for references field in ticket 2024-03-18 15:11:50 +01:00
Laurent Destailleur
ebba438fbe Merge pull request #27528 from altairisfr/rdb
[DATA_MODEL] rename commande_fournisseur_dispatch into receptiondet_batch
2024-03-17 21:31:27 +01:00
Laurent Destailleur
c4b16e996e Clsoe #23147 2024-03-17 12:26:40 +01:00
evarisk-micka
d43c3227db Add signed status CRUD to contract and fichinter 2024-03-15 12:12:21 +01:00
Florian HENRY
2d051d2fd5 add BDD contraint on bar code 2024-03-15 10:38:07 +01:00
Florian HENRY
ee02be99e3 add BDD contraint on bar code 2024-03-15 10:36:22 +01:00
Florian HENRY
778f7b0fbf NEW: add column for barcode in ticket 2024-03-15 10:21:17 +01:00
Laurent Destailleur
1729129a9f Merge pull request #28834 from W1W1-M/qual-deprecated-user-done
Qual deprecated user done
2024-03-14 22:57:31 +01:00
William Mead
71e7adac7f Deleted fk_user_done 2024-03-14 13:48:00 +01:00
Jonathan lescaut
5e5792d144 add import kit 2024-03-13 15:38:29 +01:00