diff --git a/src/db/migration/V20170426_0935__mantis8921.sql b/src/db/migration/V20170426_0935__mantis8921.sql new file mode 100644 index 000000000..368a1ea7b --- /dev/null +++ b/src/db/migration/V20170426_0935__mantis8921.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE PACOTE_FORMAPAGO ADD NOTACREDITOVENDAPACOTE_ID NUMBER(7,0)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170426_0936__mantis8921.sql b/src/db/migration/V20170426_0936__mantis8921.sql new file mode 100644 index 000000000..35de57dfa --- /dev/null +++ b/src/db/migration/V20170426_0936__mantis8921.sql @@ -0,0 +1,9 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE PACOTE_FORMAPAGO + ADD CONSTRAINT FK_PACOTE_FORMAPAGO_NC FOREIGN KEY (NOTACREDITOVENDAPACOTE_ID) + REFERENCES NOTA_CREDITO_VENDA_PACOTE (NOTACREDITOVENDAPACOTE_ID)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170426_0937__mantis8921.sql b/src/db/migration/V20170426_0937__mantis8921.sql new file mode 100644 index 000000000..be6dca676 --- /dev/null +++ b/src/db/migration/V20170426_0937__mantis8921.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE PACOTE_FORMAPAGO ADD OCD_ID NUMBER(7,0)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170426_0938__mantis8921.sql b/src/db/migration/V20170426_0938__mantis8921.sql new file mode 100644 index 000000000..cf6fd20a2 --- /dev/null +++ b/src/db/migration/V20170426_0938__mantis8921.sql @@ -0,0 +1,9 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE PACOTE_FORMAPAGO + ADD CONSTRAINT FK_PACOTE_FORMAPAGO_OCD FOREIGN KEY (OCD_ID) + REFERENCES OCD (OCD_ID)'; + exception when object_exists then null; +end; \ No newline at end of file