From 069f517d5301b54fe50e81654288b68fd4b768f2 Mon Sep 17 00:00:00 2001 From: aristides Date: Fri, 28 Aug 2020 14:58:48 +0000 Subject: [PATCH] fixes bug#EBUS-48 dev: qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@103078 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20200828_1115__ebus48.sql | 32 +++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/db/migration/V20200828_1115__ebus48.sql diff --git a/src/db/migration/V20200828_1115__ebus48.sql b/src/db/migration/V20200828_1115__ebus48.sql new file mode 100644 index 000000000..b8064ac60 --- /dev/null +++ b/src/db/migration/V20200828_1115__ebus48.sql @@ -0,0 +1,32 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CLIENTE ADD LOGIN VARCHAR2(45)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CLIENTE ADD OPT_IN NUMBER(1,0) DEFAULT 0' ; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CLIENTE ADD IND_CADASTRO_API NUMBER (1,0) DEFAULT 0' ; + exception when column_exists then null; +end; +/ + +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CLIENTE ADD PAYMENTTOKEN VARCHAR2(45)'; + exception when column_exists then null; +end;