From 1ed8fa99c7c35bd5d8639bb81f61c3ed944d9fa5 Mon Sep 17 00:00:00 2001 From: frederico Date: Wed, 23 Oct 2019 17:43:20 +0000 Subject: [PATCH] bug#15999 qua:Wallysson dev:Thiago git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@98417 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20191023_1052__mantis15999.sql | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/db/migration/V20191023_1052__mantis15999.sql diff --git a/src/db/migration/V20191023_1052__mantis15999.sql b/src/db/migration/V20191023_1052__mantis15999.sql new file mode 100644 index 000000000..16be24406 --- /dev/null +++ b/src/db/migration/V20191023_1052__mantis15999.sql @@ -0,0 +1,33 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430 ); +begin + execute immediate 'ALTER TABLE BOLETO ADD PAIS_RESIDENCIA VARCHAR2(20)'; + exception when object_exists then null; +end; + +/ + +declare + object_exists exception; + pragma exception_init (object_exists , -01430 ); +begin + execute immediate 'ALTER TABLE CAJA ADD PAIS_RESIDENCIA VARCHAR2(20)'; + exception when object_exists then null; +end; + +/ + +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'INSERT INTO tipo_identificacion VALUES (26, ''DNI'', 1, CURRENT_DATE, 1)'; + exception when dup_val_on_index then null; +end; + +/ + +INSERT INTO TIPO_OCUPACION (TIPOOCUPACION_ID, DESCTIPO, ACTIVO, USUARIO_ID, FECMODIF) VALUES (TIPO_OCUPACION_SEQ.nextval, 'PROFISSIONAL', '1', '1', CURRENT_DATE); + +