diff --git a/src/db/migration/V20170411_1133__mantis8882.sql b/src/db/migration/V20170411_1133__mantis8882.sql new file mode 100644 index 000000000..406866f36 --- /dev/null +++ b/src/db/migration/V20170411_1133__mantis8882.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE LOG_CONFERENCIA ADD CAJA_ID NUMBER(15,0)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170411_1134__mantis8882.sql b/src/db/migration/V20170411_1134__mantis8882.sql new file mode 100644 index 000000000..34cbbcab4 --- /dev/null +++ b/src/db/migration/V20170411_1134__mantis8882.sql @@ -0,0 +1,9 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE LOG_CONFERENCIA + ADD CONSTRAINT FK_LOGCONFERENCIA_CAJA FOREIGN KEY (CAJA_ID) + REFERENCES CAJA (CAJA_ID)'; + exception when object_exists then null; +end; \ No newline at end of file