DO $$
BEGIN
  ALTER TABLE FISCAL_IMPRESSORA ADD COLUMN INTEGRADOTOTVS NUMERIC(1,0);
  ALTER TABLE FISCAL_IMPRESSORA ADD COLUMN ERRO VARCHAR(4000);
  
  ALTER TABLE FISCAL_R2 ADD COLUMN INTEGRADOTOTVS NUMERIC(1,0);
  ALTER TABLE FISCAL_R2 ADD COLUMN ERRO VARCHAR(4000);
  
  EXCEPTION WHEN duplicate_column THEN NULL;
END
$$;
