diff options
author | c00149107 <chenchuanyu@huawei.com> | 2017-08-31 14:54:23 +0800 |
---|---|---|
committer | c00149107 <chenchuanyu@huawei.com> | 2017-08-31 14:54:23 +0800 |
commit | 9b0958806593e26de8c59bb08f851252c93aeef6 (patch) | |
tree | fabbff990c6e6970085d872a05ad9c4c29aeade2 | |
parent | e17d5dd119e8413a08f72d952567b2b41aa7742f (diff) |
Add Operation Status Table
Add Operation Status Table for save the request progress
Change-Id: I92fd713bbcc0b3045b698a9e6e3f6c0a1383e0c8
Issue-ID:SO-41
Signed-off-by: c00149107 <chenchuanyu@huawei.com>
-rw-r--r-- | volumes/mariadb/docker-entrypoint-initdb.d/db-sql-scripts/main-schemas/MySQL-Requests-schema.sql | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/volumes/mariadb/docker-entrypoint-initdb.d/db-sql-scripts/main-schemas/MySQL-Requests-schema.sql b/volumes/mariadb/docker-entrypoint-initdb.d/db-sql-scripts/main-schemas/MySQL-Requests-schema.sql index c6f070d..3689b5e 100644 --- a/volumes/mariadb/docker-entrypoint-initdb.d/db-sql-scripts/main-schemas/MySQL-Requests-schema.sql +++ b/volumes/mariadb/docker-entrypoint-initdb.d/db-sql-scripts/main-schemas/MySQL-Requests-schema.sql @@ -54,5 +54,31 @@ primary key (SITE_NAME) ); + create table OPERATION_STATUS ( + SERVICE_ID varchar(255) not null, + OPERATION_ID varchar(255) not null, + OPERATION_TYPE varchar(255), + USER_ID varchar(255), + RESULT varchar(255), + OPERATION_CONTENT varchar(255), + PROGRESS varchar(255), + REASON varchar(255), + OPERATE_AT datetime, + FINISHED_AT datetime, + primary key (SERVICE_ID,OPERATION_ID) + ); + create table RESOURCE_OPERATION_STATUS ( + SERVICE_ID varchar(255) not null, + OPERATION_ID varchar(255) not null, + RESOURCE_TEMPLATE_UUID varchar(255) not null, + OPER_TYPE varchar(255), + RESOURCE_INSTANCE_ID varchar(255), + JOB_ID varchar(255), + STATUS varchar(255), + PROGRESS varchar(255), + ERROR_CODE varchar(255) , + STATUS_DESCRIPOTION varchar(255) , + primary key (SERVICE_ID,OPERATION_ID,RESOURCE_TEMPLATE_UUID) + ); alter table INFRA_ACTIVE_REQUESTS add constraint UK_bhu6w8p7wvur4pin0gjw2d5ak unique (CLIENT_REQUEST_ID); |