diff --git a/src/db/migration/V20170426_1644__mantis8946.sql b/src/db/migration/V20170426_1644__mantis8946.sql new file mode 100644 index 000000000..858fb6dac --- /dev/null +++ b/src/db/migration/V20170426_1644__mantis8946.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE DESCONTO_COMISSAO RENAME COLUMN PRECO TO PRECO_OLD'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170426_1645__mantis8946.sql b/src/db/migration/V20170426_1645__mantis8946.sql new file mode 100644 index 000000000..2a47b9392 --- /dev/null +++ b/src/db/migration/V20170426_1645__mantis8946.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE DESCONTO_COMISSAO ADD PRECO NUMBER(7,2)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170426_1646__mantis8946.sql b/src/db/migration/V20170426_1646__mantis8946.sql new file mode 100644 index 000000000..3a8f84c00 --- /dev/null +++ b/src/db/migration/V20170426_1646__mantis8946.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'UPDATE DESCONTO_COMISSAO SET PRECO = PRECO_OLD'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170426_1740__mantis8946.sql b/src/db/migration/V20170426_1740__mantis8946.sql new file mode 100644 index 000000000..af67928ab --- /dev/null +++ b/src/db/migration/V20170426_1740__mantis8946.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE TIPO_EVENTO_EXTRA ADD CVETIPOEVENTO VARCHAR2(30)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170426_1758__mantis8946.sql b/src/db/migration/V20170426_1758__mantis8946.sql new file mode 100644 index 000000000..31b67394c --- /dev/null +++ b/src/db/migration/V20170426_1758__mantis8946.sql @@ -0,0 +1,13 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'UPDATE TIPO_EVENTO_EXTRA + SET CVETIPOEVENTO = ''SEGURO_OPCIONAL'' + WHERE TIPOEVENTOEXTRA_ID IN ( + SELECT VALORCONSTANTE + FROM CONSTANTE + WHERE NOMBCONSTANTE = ''TIPO_EE_SEGURO_OPCIONAL'' + )'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170427_1142__mantis8946.sql b/src/db/migration/V20170427_1142__mantis8946.sql new file mode 100644 index 000000000..f7e77bb19 --- /dev/null +++ b/src/db/migration/V20170427_1142__mantis8946.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE COMISSAO ADD (RECEITA_BPR NUMBER(7,2), DEVOLVIDOS NUMBER(7,2))'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170427_1649__mantis8946.sql b/src/db/migration/V20170427_1649__mantis8946.sql new file mode 100644 index 000000000..f0a4e898a --- /dev/null +++ b/src/db/migration/V20170427_1649__mantis8946.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE COMISSAO ADD (RECEITA_BRUTA_EXCESSOBAGAGEM NUMBER(7,2), RECEITA_BRUTA_SEGUROOPCIONAL NUMBER(7,2))'; + exception when object_exists then null; +end; \ No newline at end of file