recovered sql
gitea/salix/dev This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-03-07 13:53:06 +01:00
parent 6bb4f04bd1
commit 9f3f0224ab
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@ BEGIN
UPDATE Consignatarios SET predeterminada = FALSE UPDATE Consignatarios SET predeterminada = FALSE
WHERE Id_cliente = NEW.Id_cliente; WHERE Id_cliente = NEW.Id_cliente;
UPDATE Consignatarios SET predeterminada = TRUE
WHERE Id_consigna = NEW.default_address;
END IF; END IF;
END$$ END$$
DELIMITER ; DELIMITER ;