diff --git a/src/db/migration/V20210415_1525__mantis22052.sql b/src/db/migration/V20210415_1525__mantis22052.sql new file mode 100644 index 000000000..9a663de1d --- /dev/null +++ b/src/db/migration/V20210415_1525__mantis22052.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE CATEGORIA_DESCUENTO ADD INDCHECKINAUTOMATICO NUMBER(1)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20210503_1033__mantis22051.sql b/src/db/migration/V20210503_1033__mantis22051.sql new file mode 100644 index 000000000..e279012db --- /dev/null +++ b/src/db/migration/V20210503_1033__mantis22051.sql @@ -0,0 +1,23 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CATEGORIA_RUTA ADD QTD_POLTRONA_AUTORIZADA NUMBER(5,0)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CATEGORIA_RUTA ADD VALOR_DESCONTO NUMBER(5,0)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CATEGORIA_RUTA ADD PORCENTAGEM_DESCONTO NUMBER(5,0)'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20210415_1525__mantis22052.sql b/src/db/postgresql/migration/V20210415_1525__mantis22052.sql new file mode 100644 index 000000000..829932aae --- /dev/null +++ b/src/db/postgresql/migration/V20210415_1525__mantis22052.sql @@ -0,0 +1,7 @@ +DO $$ +BEGIN + ALTER TABLE CATEGORIA_DESCUENTO ADD INDCHECKINAUTOMATICO NUMBER(1); + EXCEPTION + WHEN OTHERS THEN NULL; +END +$$; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20210503_1033__mantis22051.sql b/src/db/postgresql/migration/V20210503_1033__mantis22051.sql new file mode 100644 index 000000000..309e71c6e --- /dev/null +++ b/src/db/postgresql/migration/V20210503_1033__mantis22051.sql @@ -0,0 +1,22 @@ +DO $$ +BEGIN + ALTER TABLE CATEGORIA_RUTA ADD QTD_POLTRONA_AUTORIZADA NUMBER(5) + EXCEPTION + WHEN OTHERS THEN NULL; +END +$$; +/ +DO $$ +BEGIN + ALTER TABLE CATEGORIA_RUTA ADD VALOR_DESCONTO NUMBER(5) + EXCEPTION + WHEN OTHERS THEN NULL; +END +$$; +/DO $$ +BEGIN + ALTER TABLE CATEGORIA_RUTA ADD PORCENTAGEM_DESCONTO NUMBER(5) + EXCEPTION + WHEN OTHERS THEN NULL; +END +$$;