From 80960c48051210604f2dda5ea386e593e730cc33 Mon Sep 17 00:00:00 2001 From: julio Date: Fri, 17 Mar 2017 12:55:17 +0000 Subject: [PATCH] bug #8438 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@66966 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20170307_1744__mantis8438.sql | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/db/migration/V20170307_1744__mantis8438.sql b/src/db/migration/V20170307_1744__mantis8438.sql index ca7a626c5..9856a650d 100644 --- a/src/db/migration/V20170307_1744__mantis8438.sql +++ b/src/db/migration/V20170307_1744__mantis8438.sql @@ -1 +1,7 @@ -ALTER TABLE EMPRESA ADD INDOBRIGANOMEPASSAGEIRO NUMBER(1,0) DEFAULT 0; \ No newline at end of file +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE EMPRESA ADD INDOBRIGANOMEPASSAGEIRO NUMBER(1,0) DEFAULT 0'; + exception when column_exists then null; +end; \ No newline at end of file