DO $$
BEGIN
  ALTER TABLE EMPRESA ADD (INDIMPRIMIRCOMPPAGSEGOPCIONAL NUMBER(1));
  EXCEPTION WHEN duplicate_column THEN NULL;
END
$$;