From 8893cdf9d20de57a0d39bf623fb8812aec4193ed Mon Sep 17 00:00:00 2001 From: wilian Date: Fri, 31 Mar 2017 13:29:33 +0000 Subject: [PATCH] fixes bug #8754 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@67476 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20170315_1343__mantis8754.sql | 20 +++++++++++++++++++ .../migration/V20170315_1344__mantis8754.sql | 7 +++++++ 2 files changed, 27 insertions(+) create mode 100644 src/db/migration/V20170315_1343__mantis8754.sql create mode 100644 src/db/migration/V20170315_1344__mantis8754.sql diff --git a/src/db/migration/V20170315_1343__mantis8754.sql b/src/db/migration/V20170315_1343__mantis8754.sql new file mode 100644 index 000000000..66e3b71f3 --- /dev/null +++ b/src/db/migration/V20170315_1343__mantis8754.sql @@ -0,0 +1,20 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'CREATE TABLE CAJA_DET_DEPOSITO_PAGO ( + CAJADETDEPOSITOPAGO_ID NUMBER(15) NOT NULL, + IDENTIFICACAO_DEPOSITO VARCHAR2(50) NULL, + FECDEPOSITO DATE NULL, + ACTIVO NUMBER(1) NULL, + FECMODIF DATE NULL, + USUARIO_ID NUMBER(7) NULL, + IMPORTE NUMBER(7,2) NULL, + CAJADIVERSOSPAGO_ID NUMBER(15) NULL, + CAJAFORMAPAGO_ID NUMBER(15) NULL, + PRIMARY KEY (CAJADETDEPOSITOPAGO_ID), + FOREIGN KEY (CAJAFORMAPAGO_ID) REFERENCES CAJA_FORMAPAGO, + FOREIGN KEY (CAJADIVERSOSPAGO_ID) REFERENCES CAJA_DIVERSOS_PAGO + )'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170315_1344__mantis8754.sql b/src/db/migration/V20170315_1344__mantis8754.sql new file mode 100644 index 000000000..fe0f96d6c --- /dev/null +++ b/src/db/migration/V20170315_1344__mantis8754.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'CREATE SEQUENCE CAJA_DET_DEPOSITO_PAGO_SEQ INCREMENT BY 1 MAXVALUE 9999999 MINVALUE 1 CACHE 20'; + exception when object_exists then null; +end; \ No newline at end of file