From 4a994a72461e136385d1418303fc6e8da2b804c2 Mon Sep 17 00:00:00 2001 From: alberto Date: Thu, 4 Apr 2019 14:38:45 +0000 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20script=20bug#13440=20dev:t?= =?UTF-8?q?revezani=20qua:?= 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@91579 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20190222_0940__mantis13440.sql | 65 ++++++++++++++++++- 1 file changed, 64 insertions(+), 1 deletion(-) 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;