diff --git a/.classpath b/.classpath index bcd8c858e..64fccf73d 100644 --- a/.classpath +++ b/.classpath @@ -6,16 +6,22 @@ - - - - - + + + + + + + + + + + diff --git a/src/db/migration/V20200520_0934__mantis19260.sql b/src/db/migration/V20200520_0934__mantis19260.sql new file mode 100644 index 000000000..aede5b71b --- /dev/null +++ b/src/db/migration/V20200520_0934__mantis19260.sql @@ -0,0 +1,15 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE CATEGORIA ADD (INDVENDEAPI NUMBER(1) DEFAULT 0 NOT NULL)'; + exception when object_exists then null; +end; + +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'UPDATE CATEGORIA SET INDVENDEAPI = 1 WHERE CATEGORIA_ID = 1'; + exception when object_exists then null; +end; \ No newline at end of file