diff --git a/src/db/migration/V20190522_0930__mantis14294.sql b/src/db/migration/V20190522_0930__mantis14294.sql new file mode 100644 index 000000000..9d2c33a83 --- /dev/null +++ b/src/db/migration/V20190522_0930__mantis14294.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430 ); +begin + execute immediate 'ALTER TABLE EMPRESA ADD (INDVENDAESTUDANTETOTEM NUMBER(1) DEFAULT 0)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190522_0930__mantis14294.sql b/src/db/postgresql/migration/V20190522_0930__mantis14294.sql new file mode 100644 index 000000000..68853515c --- /dev/null +++ b/src/db/postgresql/migration/V20190522_0930__mantis14294.sql @@ -0,0 +1,5 @@ +DO $$ +BEGIN + ALTER TABLE EMPRESA ADD (INDVENDAESTUDANTETOTEM NUMBER(1) DEFAULT 0); +END +$$; \ No newline at end of file