From 42102c8ab289acea6fe03f8b0ddaf6ebaf1b3438 Mon Sep 17 00:00:00 2001 From: alberto Date: Fri, 28 Apr 2017 18:36:03 +0000 Subject: [PATCH] =?UTF-8?q?Gerar=20lan=C3=A7amento=20comiss=C3=A3o=20no=20?= =?UTF-8?q?conta=20corrente=20da=20ag=C3=AAncia=20(issue=208900)?= 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@68374 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20170428_1430__mantis8900.sql | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/db/migration/V20170428_1430__mantis8900.sql diff --git a/src/db/migration/V20170428_1430__mantis8900.sql b/src/db/migration/V20170428_1430__mantis8900.sql new file mode 100644 index 000000000..1c51ed0e1 --- /dev/null +++ b/src/db/migration/V20170428_1430__mantis8900.sql @@ -0,0 +1,25 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE COMISSAO RENAME COLUMN RECEITA_OUTROS TO RECEITA_OUTROS_OLD'; + exception when object_exists then null; +end; +/ + +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE COMISSAO ADD RECEITA_OUTROS NUMBER(7,2)'; + exception when object_exists then null; +end; +/ + +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'UPDATE COMISSAO SET RECEITA_OUTROS = RECEITA_OUTROS_OLD'; + exception when object_exists then null; +end;