aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2020-02-19 11:11:41 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2020-02-19 11:11:41 +0800
commit0bc6988f9e6aa453722a97d91d275059c602cf15 (patch)
treecb063f38e1e0265745e80ae89548914fca64d1bb
parent3c83d49d9b70d8dd371ad5bf4dfc22a070344102 (diff)
Add script to create OrchestrationTask table
Issue-ID: SO-2368 Add SQL script to create OrchestrationTask table Change-Id: Ic59fe76a954c8808a32bb8f89eca3a933d559b02 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
-rw-r--r--adapters/mso-requests-db-adapter/src/main/resources/db/migration/V8.1__Add_Orchestration_Task_Table.sql12
1 files changed, 12 insertions, 0 deletions
diff --git a/adapters/mso-requests-db-adapter/src/main/resources/db/migration/V8.1__Add_Orchestration_Task_Table.sql b/adapters/mso-requests-db-adapter/src/main/resources/db/migration/V8.1__Add_Orchestration_Task_Table.sql
new file mode 100644
index 0000000000..0d7cb7a62b
--- /dev/null
+++ b/adapters/mso-requests-db-adapter/src/main/resources/db/migration/V8.1__Add_Orchestration_Task_Table.sql
@@ -0,0 +1,12 @@
+USE `requestdb`;
+
+CREATE TABLE `orchestration_task` (
+ `TASK_ID` varchar(200) NOT NULL,
+ `REQUEST_ID` varchar(200) NOT NULL,
+ `NAME` varchar(200) NOT NULL,
+ `CREATED_TIME` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `STATUS` varchar(200) NOT NULL,
+ `IS_MANUAL` varchar(20) NOT NULL,
+ `PARAMS` varchar(20000) DEFAULT NULL,
+ PRIMARY KEY (`TASK_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;