From 7460ae0c811b3d388d3f1ae8ce9d9c0af77fe5f2 Mon Sep 17 00:00:00 2001 From: leonardo Date: Thu, 4 Jul 2019 17:11:37 +0000 Subject: [PATCH] =?UTF-8?q?14659:=20Venda=20embarcada=20-=20Aumentar=20qua?= =?UTF-8?q?ntidade=20de=20vendas=20em=20p=C3=A9=20fixes=20bug#14659=20dev:?= =?UTF-8?q?zauli=20qua:leo?= 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@95414 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20190704_1113__mantis14659.sql | 7 +++++++ .../postgresql/migration/V20190704_1119__mantis14659.sql | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 src/db/migration/V20190704_1113__mantis14659.sql create mode 100644 src/db/postgresql/migration/V20190704_1119__mantis14659.sql diff --git a/src/db/migration/V20190704_1113__mantis14659.sql b/src/db/migration/V20190704_1113__mantis14659.sql new file mode 100644 index 000000000..94438f421 --- /dev/null +++ b/src/db/migration/V20190704_1113__mantis14659.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430 ); +begin + execute immediate 'ALTER TABLE CORRIDA MODIFY (CANTPARADOS NUMBER(7, 0))'; + exception when object_exists then null; +end; diff --git a/src/db/postgresql/migration/V20190704_1119__mantis14659.sql b/src/db/postgresql/migration/V20190704_1119__mantis14659.sql new file mode 100644 index 000000000..c6ce31c38 --- /dev/null +++ b/src/db/postgresql/migration/V20190704_1119__mantis14659.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE CORRIDA MODIFY (CANTPARADOS NUMBER(7, 0)); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file