diff --git a/src/db/migration/V20190704_1110__mantis14699.sql b/src/db/migration/V20190704_1110__mantis14699.sql new file mode 100644 index 000000000..ae61598a1 --- /dev/null +++ b/src/db/migration/V20190704_1110__mantis14699.sql @@ -0,0 +1,8 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430 ); +begin + execute immediate 'alter table ORGAO_CONCEDENTE ADD mensagem_intransferivel VARCHAR2(45)'; + exception when object_exists then null; +end; +z \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190704_1110__mantis14699.sql b/src/db/postgresql/migration/V20190704_1110__mantis14699.sql new file mode 100644 index 000000000..50043fdb0 --- /dev/null +++ b/src/db/postgresql/migration/V20190704_1110__mantis14699.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE ORGAO_CONCEDENTE ADD COLUMN mensagem_intransferivel VARCHAR(45); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file