From 17f326e610e9fef96a40e31471a30209d91bdc7c Mon Sep 17 00:00:00 2001 From: "daniel.zauli" Date: Tue, 30 Oct 2018 14:29:04 +0000 Subject: [PATCH] =?UTF-8?q?0012479:=20Ouro=20e=20Prata=20-=20427078=20-=20?= =?UTF-8?q?Totalbus=20VIOP:=20Observa=C3=A7=C3=A3o=20embarque/desembarque?= =?UTF-8?q?=20bug#0012479=20dev:Valdir=20qua:Evidencia=20anexa?= 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@86588 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20181022_1725__mantis12468.sql | 2 +- src/db/migration/V20181029_1100__mantis12479.sql | 7 +++++++ .../postgresql/migration/V20181022_1725__mantis12468.sql | 2 +- .../postgresql/migration/V20181029_1100__mantis12479.sql | 7 +++++++ 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/db/migration/V20181029_1100__mantis12479.sql create mode 100644 src/db/postgresql/migration/V20181029_1100__mantis12479.sql diff --git a/src/db/migration/V20181022_1725__mantis12468.sql b/src/db/migration/V20181022_1725__mantis12468.sql index 555c200c9..8819a9706 100644 --- a/src/db/migration/V20181022_1725__mantis12468.sql +++ b/src/db/migration/V20181022_1725__mantis12468.sql @@ -2,6 +2,6 @@ declare column_exists exception; pragma exception_init (column_exists , -01430); begin - execute immediate 'ALTER TABLE CAJA ADD (INTEGRADOTOTVS NUMBER(1,0))'; + execute immediate 'ALTER TABLE CAJA ADD (INTEGRADOTOTVS NUMBER(1,0)'; exception when column_exists then null; end; \ No newline at end of file diff --git a/src/db/migration/V20181029_1100__mantis12479.sql b/src/db/migration/V20181029_1100__mantis12479.sql new file mode 100644 index 000000000..ee37f1eb0 --- /dev/null +++ b/src/db/migration/V20181029_1100__mantis12479.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE EMPRESA ADD INDIMPEMBARQDESEMBARQCUPOM NUMBER(1,0) DEFAULT 0 NOT NULL ENABLE'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20181022_1725__mantis12468.sql b/src/db/postgresql/migration/V20181022_1725__mantis12468.sql index 555c200c9..8819a9706 100644 --- a/src/db/postgresql/migration/V20181022_1725__mantis12468.sql +++ b/src/db/postgresql/migration/V20181022_1725__mantis12468.sql @@ -2,6 +2,6 @@ declare column_exists exception; pragma exception_init (column_exists , -01430); begin - execute immediate 'ALTER TABLE CAJA ADD (INTEGRADOTOTVS NUMBER(1,0))'; + execute immediate 'ALTER TABLE CAJA ADD (INTEGRADOTOTVS NUMBER(1,0)'; exception when column_exists then null; end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20181029_1100__mantis12479.sql b/src/db/postgresql/migration/V20181029_1100__mantis12479.sql new file mode 100644 index 000000000..ee37f1eb0 --- /dev/null +++ b/src/db/postgresql/migration/V20181029_1100__mantis12479.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE EMPRESA ADD INDIMPEMBARQDESEMBARQCUPOM NUMBER(1,0) DEFAULT 0 NOT NULL ENABLE'; + exception when column_exists then null; +end; \ No newline at end of file