From 112a6d8b7a58cba2cbb7e803ffc1cdf9577a350e Mon Sep 17 00:00:00 2001 From: wilian Date: Wed, 16 Jan 2019 21:19:39 +0000 Subject: [PATCH] fixes bug#13320 fixes bug#13317 fixes bug#13316 fixes bug#13304 fixes bug#13284 fixes bug#13283 dev:thiago qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@88952 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20190116_1446__mantis13283.sql | 7 +++++++ src/db/migration/V20190116_1539__mantis13304.sql | 7 +++++++ .../postgresql/migration/V20190116_1446__mantis13283.sql | 6 ++++++ .../postgresql/migration/V20190116_1539__mantis13304.sql | 6 ++++++ 4 files changed, 26 insertions(+) create mode 100644 src/db/migration/V20190116_1446__mantis13283.sql create mode 100644 src/db/migration/V20190116_1539__mantis13304.sql create mode 100644 src/db/postgresql/migration/V20190116_1446__mantis13283.sql create mode 100644 src/db/postgresql/migration/V20190116_1539__mantis13304.sql diff --git a/src/db/migration/V20190116_1446__mantis13283.sql b/src/db/migration/V20190116_1446__mantis13283.sql new file mode 100644 index 000000000..cb3ec87ce --- /dev/null +++ b/src/db/migration/V20190116_1446__mantis13283.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE TRANSACAO_KONDUTO ADD (PARADA_ID_VOLTA NUMBER(7))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20190116_1539__mantis13304.sql b/src/db/migration/V20190116_1539__mantis13304.sql new file mode 100644 index 000000000..7725c0579 --- /dev/null +++ b/src/db/migration/V20190116_1539__mantis13304.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE TRANSACAO_KONDUTO ADD (NOMECARTAO VARCHAR(60), CLASESERVICIO_VOLTA VARCHAR(60))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190116_1446__mantis13283.sql b/src/db/postgresql/migration/V20190116_1446__mantis13283.sql new file mode 100644 index 000000000..bab3c026c --- /dev/null +++ b/src/db/postgresql/migration/V20190116_1446__mantis13283.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE TRANSACAO_KONDUTO ADD (PARADA_ID_VOLTA NUMBER(7)) + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190116_1539__mantis13304.sql b/src/db/postgresql/migration/V20190116_1539__mantis13304.sql new file mode 100644 index 000000000..52bb76854 --- /dev/null +++ b/src/db/postgresql/migration/V20190116_1539__mantis13304.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE TRANSACAO_KONDUTO ADD (NOMECARTAO VARCHAR(60), CLASESERVICIO_VOLTA VARCHAR(60)) + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file