Skip to content
Snippets Groups Projects
Commit fadbafb2 authored by Ulysse Valdenaire's avatar Ulysse Valdenaire
Browse files

fix sql constraint prevent delete tiers

parent a39dbf1a
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,9 @@ Le format du fichier est basé sur [Tenez un ChangeLog](http://keepachangelog.co
## [Non Distribué]
## [14.0.15] - 10-12-2024
- Correction contrainte SQL empêche la suppression de Tiers quand le module est désactivé
## [14.0.14] - 02-10-2024
- compatibilite V20
......@@ -87,7 +90,8 @@ Le format du fichier est basé sur [Tenez un ChangeLog](http://keepachangelog.co
## [4.0.0] - 10-09-2018
- Version initial.
[Non Distribué]: http://git.open-dsi.fr/dolibarr-extension/prospectingmap/compare/14.0.14...HEAD
[Non Distribué]: http://git.open-dsi.fr/dolibarr-extension/prospectingmap/compare/14.0.15...HEAD
[14.0.15]: http://git.open-dsi.fr/dolibarr-extension/prospectingmap/commits/14.0.15
[14.0.14]: http://git.open-dsi.fr/dolibarr-extension/prospectingmap/commits/14.0.14
[14.0.13]: http://git.open-dsi.fr/dolibarr-extension/prospectingmap/commits/14.0.13
[14.0.12]: http://git.open-dsi.fr/dolibarr-extension/prospectingmap/commits/14.0.12
......
14.0.14
\ No newline at end of file
14.0.15
\ No newline at end of file
......@@ -335,7 +335,7 @@ class modProspectingMap extends DolibarrModules
*/
public function remove($options = '')
{
$sql = array();
$sql = array('ALTER TABLE llx_prospectingmap_coordinate DROP CONSTRAINT fk_prospectingmap_c_fk_soc');
return $this->_remove($sql, $options);
}
......
......@@ -16,6 +16,10 @@
--
-- ===========================================================================
SET FOREIGN_KEY_CHECKS = 0;
ALTER TABLE llx_prospectingmap_coordinate ADD UNIQUE INDEX uk_prospectingmap_c_fk_soc (fk_soc);
ALTER TABLE llx_prospectingmap_coordinate ADD CONSTRAINT fk_prospectingmap_c_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid);
SET FOREIGN_KEY_CHECKS = 1;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment