diff --git a/src/db/migration/V20190227_1840__mantis13647.sql b/src/db/migration/V20190227_1840__mantis13647.sql new file mode 100644 index 000000000..dee5ea7c4 --- /dev/null +++ b/src/db/migration/V20190227_1840__mantis13647.sql @@ -0,0 +1,15 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE EMPRESA ADD INDREAPROVEITARNUMBPEREJEITADO NUMBER(1,0) DEFAULT 0'; + exception when column_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00001); +begin + execute immediate 'UPDATE EMPRESA SET INDREAPROVEITARNUMBPEREJEITADO = 0'; + exception when object_exists then null; +end; \ No newline at end of file