﻿IF (EXISTS ( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'ToleranciaPremio' AND TABLE_NAME = 'ciaseg'))
BEGIN
	UPDATE ciaseg SET ToleranciaPremio = tolerancia WHERE ToleranciaPremio IS NULL;
END