diff --git a/src/java/db/migration/V20160801_1449__txemarque.sql b/src/java/db/migration/V20160801_1449__txemarque.sql index c6d4e8deb..f88862aaf 100644 --- a/src/java/db/migration/V20160801_1449__txemarque.sql +++ b/src/java/db/migration/V20160801_1449__txemarque.sql @@ -1 +1,7 @@ -ALTER TABLE VTABOL.TAXA_EMBARQUE_PARADA ADD (EMPRESA_ID NUMBER(7) DEFAULT -1 NOT NULL) \ No newline at end of file +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE VTABOL.TAXA_EMBARQUE_PARADA ADD (EMPRESA_ID NUMBER(7) DEFAULT -1 NOT NULL)'; + exception when column_exists then null; +end; \ No newline at end of file