diff --git a/src/db/migration/V20181022_1725__mantis12468.sql b/src/db/migration/V20181022_1725__mantis12468.sql index d615613fb..555c200c9 100644 --- a/src/db/migration/V20181022_1725__mantis12468.sql +++ b/src/db/migration/V20181022_1725__mantis12468.sql @@ -1,3 +1,6 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); begin execute immediate 'ALTER TABLE CAJA ADD (INTEGRADOTOTVS NUMBER(1,0))'; exception when column_exists then null; diff --git a/src/db/postgresql/migration/V20181022_1725__mantis12468.sql b/src/db/postgresql/migration/V20181022_1725__mantis12468.sql index d615613fb..555c200c9 100644 --- a/src/db/postgresql/migration/V20181022_1725__mantis12468.sql +++ b/src/db/postgresql/migration/V20181022_1725__mantis12468.sql @@ -1,3 +1,6 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); begin execute immediate 'ALTER TABLE CAJA ADD (INTEGRADOTOTVS NUMBER(1,0))'; exception when column_exists then null;