CREATE TRIGGER CARRERAS_BI FOR CARRERAS
ACTIVE BEFORE INSERT POSITION 0
AS
BEGIN
  IF (NEW.NRO_CARRERA IS NULL) THEN BEGIN
    NEW.NRO_CARRERA = GEN_ID(ORDEN_GEN, 1);
  END
  IF (NEW.INHABILITADO IS NULL) THEN BEGIN
    NEW.INHABILITADO = FALSE;
  END

END