From c8eb2f3dcf0585b87ed4fb10d1932cbe922954ec Mon Sep 17 00:00:00 2001 From: "bruno.neves" Date: Wed, 24 May 2017 18:59:14 +0000 Subject: [PATCH] =?UTF-8?q?corre=C3=A7=C3=A3o=20de=20script?= 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@69269 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20170516_1442__mantis9037.sql | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/db/migration/V20170516_1442__mantis9037.sql b/src/db/migration/V20170516_1442__mantis9037.sql index 5f5ca26fa..dea3d0b82 100644 --- a/src/db/migration/V20170516_1442__mantis9037.sql +++ b/src/db/migration/V20170516_1442__mantis9037.sql @@ -5,9 +5,14 @@ begin begin execute immediate 'CREATE TABLE PRECIO_FIXO_PEDAGIO (PRECIOFIXO_ID NUMBER(15) NOT NULL, PRACA_PEDAGIO_ID NUMBER(15) NOT NULL, ORGAO_CONCEDENTE_ID NUMBER(15), CLASSE_SERVICO_ID NUMBER(15), VALOR_FIXO NUMBER(7,2) NOT NULL)'; exception when object_exists then null; - end; - begin - execute immediate 'CREATE SEQUENCE PRECIO_FIXO_PEDAGIO_SEQ INCREMENT BY 1 START WITH 1 MAXVALUE 9999999999999999999999999999 MINVALUE 1 NOCYCLE CACHE 20 NOORDER'; - exception when object_exists then null; - end; end; +/ + +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'CREATE SEQUENCE PRECIO_FIXO_PEDAGIO_SEQ INCREMENT BY 1 START WITH 1 MAXVALUE 9999999999999999999999999999 MINVALUE 1 NOCYCLE CACHE 20 NOORDER'; + exception when object_exists then null; +end; + \ No newline at end of file