From 5234cb6679025c5f2704b34d02e4539ebb1c0ff6 Mon Sep 17 00:00:00 2001 From: valdevir Date: Tue, 15 Dec 2020 13:42:33 +0000 Subject: [PATCH] =?UTF-8?q?fixes=20bug#21228=20qua:=20dev:Aristides=20Impl?= =?UTF-8?q?ementado=20filtro=20para=20n=C3=A3o=20trazer=20usu=C3=A1rio=20q?= =?UTF-8?q?ue=20n=C3=A3o=20tenha=20cadastro=20do=20cadastro=20de=20operado?= =?UTF-8?q?r=20EMBARCADA=5FSINCRONISMO.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@104726 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20201214_1108__mantis21228.sql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/db/migration/V20201214_1108__mantis21228.sql diff --git a/src/db/migration/V20201214_1108__mantis21228.sql b/src/db/migration/V20201214_1108__mantis21228.sql new file mode 100644 index 000000000..ed2316c76 --- /dev/null +++ b/src/db/migration/V20201214_1108__mantis21228.sql @@ -0,0 +1,18 @@ +declare + object_exists exception; + except_02275 exception; + except_02270 exception; + except_02261 exception; + + pragma exception_init (object_exists , -01430); + pragma exception_init (except_02275 , -02275); + pragma exception_init (except_02270 , -02270); + pragma exception_init (except_02261 , -02261); +begin + execute immediate 'ALTER TABLE EMBARCADA_SINCRONISMO ADD CONSTRAINT USUARIO_ID_FK FOREIGN KEY(USUARIO_ID) REFERENCES USUARIO(USUARIO_ID)'; + exception + when object_exists then null; + when except_02275 then null; + when except_02270 then null; + when except_02261 then null; +end; \ No newline at end of file