From 35e047fc9de5bcd3227c2e05b8fa34c64ae8536b Mon Sep 17 00:00:00 2001 From: wilian Date: Fri, 10 Mar 2017 19:04:33 +0000 Subject: [PATCH] bug #8749 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@66680 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20170309_1543__mantis8749.sql | 14 ++++++++++++++ src/db/migration/V20170309_1544__mantis8749.sql | 7 +++++++ src/db/migration/V20170309_1545__mantis8749.sql | 7 +++++++ 3 files changed, 28 insertions(+) create mode 100644 src/db/migration/V20170309_1543__mantis8749.sql create mode 100644 src/db/migration/V20170309_1544__mantis8749.sql create mode 100644 src/db/migration/V20170309_1545__mantis8749.sql diff --git a/src/db/migration/V20170309_1543__mantis8749.sql b/src/db/migration/V20170309_1543__mantis8749.sql new file mode 100644 index 000000000..6c8953c4e --- /dev/null +++ b/src/db/migration/V20170309_1543__mantis8749.sql @@ -0,0 +1,14 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'CREATE TABLE OPERADORA_CARTAO ( + OPERADORACARTAO_ID NUMBER(7) NOT NULL, + DESCOPERADORACARTAO VARCHAR2(50) NULL, + ACTIVO NUMBER(1) NULL, + USUARIO_ID NUMBER(7) NULL, + FECMODIF DATE NULL, + PRIMARY KEY (OPERADORACARTAO_ID) + )'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170309_1544__mantis8749.sql b/src/db/migration/V20170309_1544__mantis8749.sql new file mode 100644 index 000000000..6ca270fb0 --- /dev/null +++ b/src/db/migration/V20170309_1544__mantis8749.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'CREATE SEQUENCE OPERADORA_CARTAO_SEQ INCREMENT BY 1 MAXVALUE 9999999 MINVALUE 1 CACHE 20'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170309_1545__mantis8749.sql b/src/db/migration/V20170309_1545__mantis8749.sql new file mode 100644 index 000000000..ac125e983 --- /dev/null +++ b/src/db/migration/V20170309_1545__mantis8749.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE CAJA_TARJETA ADD DESCOPERADORACARTAO VARCHAR2(50)'; + exception when object_exists then null; +end; \ No newline at end of file