summaryrefslogtreecommitdiffstats
path: root/adapters/mso-requests-db-adapter/src/main/resources
diff options
context:
space:
mode:
authorPlummer, Brittany <brittany.plummer@att.com>2019-05-20 16:03:09 -0400
committerBenjamin, Max (mb388a) <mb388a@us.att.com>2019-05-20 16:03:19 -0400
commit26fda68fedf439c6fad8352cfcd2d04522b1ff23 (patch)
tree2c16f597644880887b724ba6b658f8176831bebd /adapters/mso-requests-db-adapter/src/main/resources
parent6ccd240f9a6fa92939432eb43b66b28c2147945e (diff)
Added script for adding original_request_id column
Added IF NOT EXISTS clause to ADD COLUMN Added script for adding original_request_id column Change-Id: I816d260c60fb5473a9ffb11fa36c49a3493e8e72 Issue-ID: SO-1902 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
Diffstat (limited to 'adapters/mso-requests-db-adapter/src/main/resources')
-rw-r--r--adapters/mso-requests-db-adapter/src/main/resources/db/migration/V5.8__Add_Column_Original_Request_Id.sql4
1 files changed, 4 insertions, 0 deletions
diff --git a/adapters/mso-requests-db-adapter/src/main/resources/db/migration/V5.8__Add_Column_Original_Request_Id.sql b/adapters/mso-requests-db-adapter/src/main/resources/db/migration/V5.8__Add_Column_Original_Request_Id.sql
new file mode 100644
index 0000000000..54c3c8af60
--- /dev/null
+++ b/adapters/mso-requests-db-adapter/src/main/resources/db/migration/V5.8__Add_Column_Original_Request_Id.sql
@@ -0,0 +1,4 @@
+use requestdb;
+
+ALTER TABLE infra_active_requests ADD COLUMN IF NOT EXISTS ORIGINAL_REQUEST_ID varchar(45);
+ALTER TABLE archived_infra_requests ADD COLUMN IF NOT EXISTS ORIGINAL_REQUEST_ID varchar(45); \ No newline at end of file