From 75b91903c5e34842a3838b003e431f4dc2c21e07 Mon Sep 17 00:00:00 2001 From: valdir Date: Thu, 20 Feb 2020 12:46:17 +0000 Subject: [PATCH] 0018073: Novas cores para poltronas reservadas - Chamado: REQ-516451; bug#18073 dev:wilian qua:junia git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@100319 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20200215_1330__mantis18073.sql | 7 +++++++ .../postgresql/migration/V20200215_1330__mantis18073.sql | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 src/db/migration/V20200215_1330__mantis18073.sql create mode 100644 src/db/postgresql/migration/V20200215_1330__mantis18073.sql diff --git a/src/db/migration/V20200215_1330__mantis18073.sql b/src/db/migration/V20200215_1330__mantis18073.sql new file mode 100644 index 000000000..8734d59c4 --- /dev/null +++ b/src/db/migration/V20200215_1330__mantis18073.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CATEGORIA_DESCUENTO MODIFY CORPOLTRONA VARCHAR2(30)'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20200215_1330__mantis18073.sql b/src/db/postgresql/migration/V20200215_1330__mantis18073.sql new file mode 100644 index 000000000..ec4aff19d --- /dev/null +++ b/src/db/postgresql/migration/V20200215_1330__mantis18073.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE CATEGORIA_DESCUENTO MODIFY CORPOLTRONA VARCHAR2(30); + EXCEPTION WHEN unique_violation THEN NULL; +END +$$;