From c83cec7a304faca2809fa6f6d715451d40bd48dc Mon Sep 17 00:00:00 2001 From: lucassilverio Date: Wed, 20 May 2020 18:01:17 +0000 Subject: [PATCH] fixes bug#19260 dev: xxx qua: xxx Funcionalidade para configurar a venda de categorias na API git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@101701 d1611594-4594-4d17-8e1d-87c2c4800839 --- .classpath | 16 +++++++++++----- src/db/migration/V20200520_0934__mantis19260.sql | 15 +++++++++++++++ 2 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 src/db/migration/V20200520_0934__mantis19260.sql diff --git a/.classpath b/.classpath index bcd8c858e..64fccf73d 100644 --- a/.classpath +++ b/.classpath @@ -6,16 +6,22 @@ - - - - - + + + + + + + + + + + diff --git a/src/db/migration/V20200520_0934__mantis19260.sql b/src/db/migration/V20200520_0934__mantis19260.sql new file mode 100644 index 000000000..aede5b71b --- /dev/null +++ b/src/db/migration/V20200520_0934__mantis19260.sql @@ -0,0 +1,15 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE CATEGORIA ADD (INDVENDEAPI NUMBER(1) DEFAULT 0 NOT NULL)'; + exception when object_exists then null; +end; + +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'UPDATE CATEGORIA SET INDVENDEAPI = 1 WHERE CATEGORIA_ID = 1'; + exception when object_exists then null; +end; \ No newline at end of file