* QUAL: Add sqlfluff (SQL code and style check)
# QUAL: Add sqlfluff (SQL code and style check)
This adds a validity and style check on the .sql files.
The same tool can be used to fix style (which can be set up as a
pre-commit hook).
* Ignore some sqlfluff notices
* Ignore RF04 notice, warning about the use of sql keywords
* Adjust dialects for some directories
* 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>
* [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
duplicate of BILL_CREATE.
This trigger was not a CRUD event. If you used it, you can already use
the trigger BILL_CREATE and test that ($object->fac_rec > 0) to know if
creation trigger is from a recurring invoice or not. Also this old
trigger was never enabled into table llx_c_action_trigger.