diff --git a/src/db/migration/V20190222_0940__mantis13440.sql b/src/db/migration/V20190222_0940__mantis13440.sql index d63488b89..cc48ec1ad 100644 --- a/src/db/migration/V20190222_0940__mantis13440.sql +++ b/src/db/migration/V20190222_0940__mantis13440.sql @@ -3,14 +3,77 @@ declare pragma exception_init (column_exists , -01430); begin execute immediate 'ALTER TABLE TAXPOLV ADD PUNTOVENTA_ID NUMBER(7)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin execute immediate 'ALTER TABLE TAXPOLV ADD PUNTOVENTA_CANCELAMENTO_ID NUMBER(7)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin execute immediate 'ALTER TABLE TAXPOLV ADD TIPOPTOVTA_ID NUMBER(2)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin execute immediate 'ALTER TABLE TAXPOLV ADD DESC_LOCAL_VENDA VARCHAR2(180)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin execute immediate 'ALTER TABLE TAXPOLV ADD DESC_LOCAL_CANCELAMENTO VARCHAR2(180)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin execute immediate 'ALTER TABLE TAXPOLV ADD UF_VENDA VARCHAR2(2)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin execute immediate 'ALTER TABLE TAXPOLV ADD UF_CANCELAMENTO VARCHAR2(2)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin execute immediate 'ALTER TABLE TAXPOLV ADD HORACANCELAMENTO VARCHAR2(5)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin execute immediate 'ALTER TABLE TAXPOLV ADD NUMKMVIAJE NUMBER(7,2)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin execute immediate 'ALTER TABLE TAXPOLV ADD DESCRUTA VARCHAR2(60)'; exception when column_exists then null; -end; \ No newline at end of file +end;