Exportação Fiscal : ECF e RMD (issue 8120)

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@64259 d1611594-4594-4d17-8e1d-87c2c4800839
master
alberto 2016-12-28 13:00:24 +00:00
parent d9a91ac91b
commit e654abe71e
4 changed files with 28 additions and 4 deletions

View File

@ -1,4 +1,7 @@
ALTER TABLE FISCAL_IMPRESSORA ADD (NUMEROIDENTIFICACAO NUMBER(3));
ALTER TABLE EMPRESA_IMPOSTO ADD (CODESTABELECIMENTO NUMBER(4));
ALTER TABLE EMPRESA_IMPOSTO ADD (TRIBUTACAOIMPORTACAO NUMBER(5,2));
ALTER TABLE ESTADO ADD (CODESTABELECIMENTO NUMBER(4));
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE FISCAL_IMPRESSORA ADD (NUMEROIDENTIFICACAO NUMBER(3))';
exception when column_exists then null;
end;

View File

@ -0,0 +1,7 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE EMPRESA_IMPOSTO ADD (CODESTABELECIMENTO NUMBER(4))';
exception when column_exists then null;
end;

View File

@ -0,0 +1,7 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE EMPRESA_IMPOSTO ADD (TRIBUTACAOIMPORTACAO NUMBER(5,2))';
exception when column_exists then null;
end;

View File

@ -0,0 +1,7 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE ESTADO ADD (CODESTABELECIMENTO NUMBER(4))';
exception when column_exists then null;
end;