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