diff --git a/src/db/migration/V20180627_1644__mantis11406.sql b/src/db/migration/V20180627_1644__mantis11406.sql new file mode 100644 index 000000000..c5bb27fd0 --- /dev/null +++ b/src/db/migration/V20180627_1644__mantis11406.sql @@ -0,0 +1,17 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE FISCAL_IMPRESSORA ADD (INTEGRADOTOTVS NUMBER(1,0), ERRO VARCHAR2(4000 BYTE))'; + ALTER TABLE FISCAL_IMPRESSORA ADD (ERRO VARCHAR2(4000 BYTE) + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE FISCAL_R2 ADD (INTEGRADOTOTVS NUMBER(1,0), ERRO VARCHAR2(4000 BYTE)))'; + exception when column_exists then null; +end; +/