diff --git a/src/db/migration/V20190603_1653__mantis14497.sql b/src/db/migration/V20190603_1653__mantis14497.sql new file mode 100644 index 000000000..fa14da539 --- /dev/null +++ b/src/db/migration/V20190603_1653__mantis14497.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430 ); +begin + execute immediate 'alter table CLASE_SERVICIO ADD COEFICIENTETARIFA NUMBER(14,9)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20190606_1144__mantis14497.sql b/src/db/migration/V20190606_1144__mantis14497.sql new file mode 100644 index 000000000..2f644bdb8 --- /dev/null +++ b/src/db/migration/V20190606_1144__mantis14497.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430 ); +begin + execute immediate 'alter table ORGAO_CONCEDENTE ADD COEFICIENTETARIFA NUMBER(14,9)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190603_1653__mantis14497.sql b/src/db/postgresql/migration/V20190603_1653__mantis14497.sql new file mode 100644 index 000000000..2a30cddb3 --- /dev/null +++ b/src/db/postgresql/migration/V20190603_1653__mantis14497.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE CLASE_SERVICIO ADD COLUMN COEFICIENTETARIFA NUMERIC(14,9); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190606_1144__mantis14497.sql b/src/db/postgresql/migration/V20190606_1144__mantis14497.sql new file mode 100644 index 000000000..091d50410 --- /dev/null +++ b/src/db/postgresql/migration/V20190606_1144__mantis14497.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE ORGAO_CONCEDENTE ADD COLUMN COEFICIENTETARIFA NUMERIC(14,9); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file