* NEW : manage several type of dangerous goods for a same parcel
Manage several type of dangerous goods for a same parcel Before :
dangerous_goods : smallint (so only 1 type can be defined eg 3) After
dangerous_goods : varchar so can be a list of numbers eg 3,5,8
* Update llx_expedition_package.sql
> Adding a default value to default '0' to keep compatibility seems required.
* Update 20.0.0-21.0.0.sql
> You must include migration change into same PR so PR is atomic. Include change of #30237
* Update llx_expedition_package.sql
space missing
* Update 20.0.0-21.0.0.sql
> -- To change type of field: ALTER TABLE llx_table MODIFY COLUMN name varchar(60);
* 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
* 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>