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