From 809606f3da6b1a8ba5c9820a76511b8a0faf80d6 Mon Sep 17 00:00:00 2001 From: alberto Date: Thu, 29 Dec 2016 19:04:34 +0000 Subject: [PATCH] =?UTF-8?q?Exporta=C3=A7=C3=A3o=20Fiscal=20:=20ECF=20e=20R?= =?UTF-8?q?MD=20(issue=208120)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@64313 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20161229_1515__mantis8120.sql | 8 ++++++++ src/db/migration/V20161229_1516__mantis8120.sql | 8 ++++++++ src/db/migration/V20161229_1517__mantis8120.sql | 8 ++++++++ src/db/migration/V20161229_1518__mantis8120.sql | 8 ++++++++ src/db/migration/V20161229_1519__mantis8120.sql | 8 ++++++++ 5 files changed, 40 insertions(+) create mode 100644 src/db/migration/V20161229_1515__mantis8120.sql create mode 100644 src/db/migration/V20161229_1516__mantis8120.sql create mode 100644 src/db/migration/V20161229_1517__mantis8120.sql create mode 100644 src/db/migration/V20161229_1518__mantis8120.sql create mode 100644 src/db/migration/V20161229_1519__mantis8120.sql diff --git a/src/db/migration/V20161229_1515__mantis8120.sql b/src/db/migration/V20161229_1515__mantis8120.sql new file mode 100644 index 000000000..7f7cc73bd --- /dev/null +++ b/src/db/migration/V20161229_1515__mantis8120.sql @@ -0,0 +1,8 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'UPDATE EMPRESA_IMPOSTO SET CODESTABELECIMENTO = NULL'; + execute immediate 'ALTER TABLE EMPRESA_IMPOSTO MODIFY (CODESTABELECIMENTO VARCHAR2(4))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20161229_1516__mantis8120.sql b/src/db/migration/V20161229_1516__mantis8120.sql new file mode 100644 index 000000000..4085894c3 --- /dev/null +++ b/src/db/migration/V20161229_1516__mantis8120.sql @@ -0,0 +1,8 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'UPDATE EMPRESA_IMPOSTO SET CODIGOCONTABILMUNICIPAL = NULL'; + execute immediate 'ALTER TABLE EMPRESA_IMPOSTO MODIFY (CODIGOCONTABILMUNICIPAL VARCHAR2(15))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20161229_1517__mantis8120.sql b/src/db/migration/V20161229_1517__mantis8120.sql new file mode 100644 index 000000000..1d9b7d358 --- /dev/null +++ b/src/db/migration/V20161229_1517__mantis8120.sql @@ -0,0 +1,8 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'UPDATE EMPRESA_IMPOSTO SET CODIGOCONTABILESTADUAL = NULL'; + execute immediate 'ALTER TABLE EMPRESA_IMPOSTO MODIFY (CODIGOCONTABILESTADUAL VARCHAR2(15))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20161229_1518__mantis8120.sql b/src/db/migration/V20161229_1518__mantis8120.sql new file mode 100644 index 000000000..ed1875214 --- /dev/null +++ b/src/db/migration/V20161229_1518__mantis8120.sql @@ -0,0 +1,8 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'UPDATE ESTADO SET CODESTABELECIMENTO = NULL'; + execute immediate 'ALTER TABLE ESTADO MODIFY (CODESTABELECIMENTO VARCHAR2(4))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20161229_1519__mantis8120.sql b/src/db/migration/V20161229_1519__mantis8120.sql new file mode 100644 index 000000000..ddf8a6208 --- /dev/null +++ b/src/db/migration/V20161229_1519__mantis8120.sql @@ -0,0 +1,8 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'UPDATE FISCAL_IMPRESSORA SET NUMEROIDENTIFICACAO = NULL'; + execute immediate 'ALTER TABLE FISCAL_IMPRESSORA MODIFY (NUMEROIDENTIFICACAO VARCHAR2(3))'; + exception when column_exists then null; +end; \ No newline at end of file