From 211a4fab5a7db5e36009bacb9698f0f32c67e0b5 Mon Sep 17 00:00:00 2001 From: emerson Date: Wed, 14 Nov 2018 20:07:50 +0000 Subject: [PATCH] fixes bug#0012471 dev: fabricio qua: marcelo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Para a venda em aberto não foi possível validar por tipo de passagem. Em conversa com a Junia foi sugerido criar o campo telefone obrigatório no cadastro de linha, onde está sendo feita a validação. Em anexo segue a imagem. git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@87059 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20181113_1808__mantis12557.sql | 7 +++++++ .../postgresql/migration/V20181113_1813__mantis12557.sql | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 src/db/migration/V20181113_1808__mantis12557.sql create mode 100644 src/db/postgresql/migration/V20181113_1813__mantis12557.sql diff --git a/src/db/migration/V20181113_1808__mantis12557.sql b/src/db/migration/V20181113_1808__mantis12557.sql new file mode 100644 index 000000000..0cc9dbd87 --- /dev/null +++ b/src/db/migration/V20181113_1808__mantis12557.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE RUTA ADD (INDTELEFONEOBRIGATORIO NUMBER(1,0) DEFAULT 0 NOT NULL)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20181113_1813__mantis12557.sql b/src/db/postgresql/migration/V20181113_1813__mantis12557.sql new file mode 100644 index 000000000..832f70e67 --- /dev/null +++ b/src/db/postgresql/migration/V20181113_1813__mantis12557.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE RUTA ADD (INDTELEFONEOBRIGATORIO NUMBER(1,0) DEFAULT 0 NOT NULL)'; + exception when column_exists then null; +end; \ No newline at end of file