From ebbdfc8c1bd9be14971f84d6827bed6695b0f137 Mon Sep 17 00:00:00 2001 From: emerson Date: Fri, 14 Sep 2018 18:05:19 +0000 Subject: [PATCH] fixes bug#0012147 dev: fabricio qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@85412 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20180913_1732__mantis12147.sql | 5 +++++ .../postgresql/migration/V20180913_1732__mantis12147.sql | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 src/db/migration/V20180913_1732__mantis12147.sql create mode 100644 src/db/postgresql/migration/V20180913_1732__mantis12147.sql diff --git a/src/db/migration/V20180913_1732__mantis12147.sql b/src/db/migration/V20180913_1732__mantis12147.sql new file mode 100644 index 000000000..ae949882d --- /dev/null +++ b/src/db/migration/V20180913_1732__mantis12147.sql @@ -0,0 +1,5 @@ +declare + begin + execute immediate 'ALTER TABLE PARADA_COD_ORGAOCONCEDENTE MODIFY CODIGO VARCHAR2(9)'; + exception when others then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20180913_1732__mantis12147.sql b/src/db/postgresql/migration/V20180913_1732__mantis12147.sql new file mode 100644 index 000000000..e3ebbb0db --- /dev/null +++ b/src/db/postgresql/migration/V20180913_1732__mantis12147.sql @@ -0,0 +1,7 @@ +DO $$ +BEGIN + ALTER TABLE PARADA_COD_ORGAOCONCEDENTE MODIFY (CODIGO VARCHAR2(9)); + + EXCEPTION WHEN others THEN NULL; +END +$$; \ No newline at end of file