From 25b2547ae82b9df325b6185152b7bdbdfdfa0d93 Mon Sep 17 00:00:00 2001 From: valdir Date: Wed, 28 Sep 2022 20:36:51 +0000 Subject: [PATCH] Ouro e Prata - Espec_controle_evento_extra bug#al-1328 dev: qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@114442 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20222709_1710__AL1328.sql | 7 +++++++ src/db/postgresql/migration/V20222709_1710__AL1328.sql | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 src/db/migration/V20222709_1710__AL1328.sql create mode 100644 src/db/postgresql/migration/V20222709_1710__AL1328.sql diff --git a/src/db/migration/V20222709_1710__AL1328.sql b/src/db/migration/V20222709_1710__AL1328.sql new file mode 100644 index 000000000..610ce3b70 --- /dev/null +++ b/src/db/migration/V20222709_1710__AL1328.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE EVENTO_EXTRA ADD NUMERO_CONTROLE VARCHAR2(300)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20222709_1710__AL1328.sql b/src/db/postgresql/migration/V20222709_1710__AL1328.sql new file mode 100644 index 000000000..01073fa36 --- /dev/null +++ b/src/db/postgresql/migration/V20222709_1710__AL1328.sql @@ -0,0 +1,5 @@ +DO $$ +BEGIN + ALTER TABLE EVENTO_EXTRA ADD NUMERO_CONTROLE VARCHAR2(300); +END +$$; \ No newline at end of file