diff --git a/src/db/migration/V20191211_1515__mantis17173.sql b/src/db/migration/V20191211_1515__mantis17173.sql new file mode 100644 index 000000000..2459e077b --- /dev/null +++ b/src/db/migration/V20191211_1515__mantis17173.sql @@ -0,0 +1,6 @@ +declare + begin + execute immediate 'INSERT INTO CUSTOM (CUSTOM_ID, SISTEMA, CHAVE, VALOR, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (CUSTOM_SEQ.nextval, 1, ''selecionarTipo2ContaCorrente'', ''false'', 1, sysdate, 1)'; + exception when others then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20191211_1515__mantis17173.sql b/src/db/postgresql/migration/V20191211_1515__mantis17173.sql new file mode 100644 index 000000000..93d9e93f7 --- /dev/null +++ b/src/db/postgresql/migration/V20191211_1515__mantis17173.sql @@ -0,0 +1,10 @@ +DO $$ +BEGIN + INSERT INTO CUSTOM (CUSTOM_ID, SISTEMA, CHAVE, VALOR, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (nextval('custom_seq'), 1, 'selecionarTipo2ContaCorrente', 'false', 1, now(), 1); + + EXCEPTION + WHEN OTHERS THEN NULL; + WHEN unique_violation THEN NULL; +END +$$; \ No newline at end of file