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