From 9f3f0224ab23b047d7cff8eb91e11f80faeae53d Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Thu, 7 Mar 2019 13:53:06 +0100 Subject: [PATCH] recovered sql --- db/install/changes/8-clientAfterUpdate.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/install/changes/8-clientAfterUpdate.sql b/db/install/changes/8-clientAfterUpdate.sql index cfbd145da..385db8739 100644 --- a/db/install/changes/8-clientAfterUpdate.sql +++ b/db/install/changes/8-clientAfterUpdate.sql @@ -12,7 +12,8 @@ BEGIN UPDATE Consignatarios SET predeterminada = FALSE WHERE Id_cliente = NEW.Id_cliente; - + UPDATE Consignatarios SET predeterminada = TRUE + WHERE Id_consigna = NEW.default_address; END IF; END$$ DELIMITER ;