Evolution #7000

GENERAL - database - Changer toutes les contraintes pour remplacer “on delete no action” par “on delete SET NULL”. (ou CASCADE selon les cas)

Added by Etienne Pallier almost 5 years ago. Updated about 1 year ago.

Status:NouveauStart date:06/07/2019
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:GENERALSpent time:-
Target version:version 2.13.x (2019) - Très configurable et avec LDAP CACHE

Description

Déjà fait pour materiels.fk_materiels_gestionnaire_id, en 2 temps :

supprimer contrainte actuelle
ALTER TABLE materiels
DROP FOREIGN KEY fk_materiels_gestionnaire_id;

Recréer contrainte
ALTER TABLE materiels
ADD CONSTRAINT fk_materiels_gestionnaire_id
FOREIGN KEY (gestionnaire_id)
REFERENCES users (id)
ON DELETE SET NULL ON UPDATE NO ACTION;

History

#1 Updated by Redmine Admin about 1 year ago

  • Assignee set to Anonymous

Also available in: Atom PDF