diff --git a/src/db/migration/V20201028_1525__mantis20288.sql b/src/db/migration/V20201028_1525__mantis20288.sql index 9c9895d42..efab29f41 100644 --- a/src/db/migration/V20201028_1525__mantis20288.sql +++ b/src/db/migration/V20201028_1525__mantis20288.sql @@ -1,6 +1,6 @@ declare begin execute immediate 'INSERT INTO CUSTOM (CUSTOM_ID, SISTEMA, CHAVE, VALOR, ACTIVO, FECMODIF, USUARIO_ID) - VALUES (CUSTOM_SEQ.nextval, 3, ''isBloqueiaReimpressaoPontoVendaW2i'', ''false'', 1, sysdate, 1)'; + VALUES (CUSTOM_SEQ.nextval, 2, ''isBloqueiaReimpressaoPontoVendaW2i'', ''false'', 1, sysdate, 1)'; exception when others then null; end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20201028_1525__mantis20288.sql b/src/db/postgresql/migration/V20201028_1525__mantis20288.sql index 3720a81af..7be0e03c4 100644 --- a/src/db/postgresql/migration/V20201028_1525__mantis20288.sql +++ b/src/db/postgresql/migration/V20201028_1525__mantis20288.sql @@ -1,7 +1,7 @@ DO $$ BEGIN INSERT INTO CUSTOM (CUSTOM_ID, SISTEMA, CHAVE, VALOR, ACTIVO, FECMODIF, USUARIO_ID) - VALUES (CUSTOM_SEQ.nextval, 3, 'isBloqueiaReimpressaoPontoVendaW2i', 'false', 1, sysdate, 1) + VALUES (nextval('CUSTOM_SEQ').nextval, 2, 'isBloqueiaReimpressaoPontoVendaW2i', 'false', 1, now(), 1) EXCEPTION WHEN unique_violation THEN NULL; END $$;