ALTER TABLE pressures
DROP CONSTRAINT fk_pressures_sensor_id;

ALTER TABLE pressures
ADD CONSTRAINT pk_pressures_sensor_id
FOREIGN KEY (sensor_id)
REFERENCES sensors(sensor_id)
ON DELETE CASCADE
ON UPDATE CASCADE;