aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuanyu Chen <chenchuanyu@huawei.com>2018-03-06 08:39:00 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-06 08:39:00 +0000
commitab31f1a177fa0cce14f7600168bd65fc66423754 (patch)
tree7230ce3b0b072d9be05be108e9ee5691b3b510bc
parent8baec272cdf3b5d3239cda7febf6aa79c66cccbf (diff)
parent4f1ed42e92332e9cd82a25b76f341757cb82bb18 (diff)
Merge "Add allotted resource recipe table"
-rw-r--r--volumes/mariadb/docker-entrypoint-initdb.d/db-sql-scripts/main-schemas/MySQL-Catalog-schema.sql16
1 files changed, 16 insertions, 0 deletions
diff --git a/volumes/mariadb/docker-entrypoint-initdb.d/db-sql-scripts/main-schemas/MySQL-Catalog-schema.sql b/volumes/mariadb/docker-entrypoint-initdb.d/db-sql-scripts/main-schemas/MySQL-Catalog-schema.sql
index 2849f7e..1738247 100644
--- a/volumes/mariadb/docker-entrypoint-initdb.d/db-sql-scripts/main-schemas/MySQL-Catalog-schema.sql
+++ b/volumes/mariadb/docker-entrypoint-initdb.d/db-sql-scripts/main-schemas/MySQL-Catalog-schema.sql
@@ -30,6 +30,8 @@
drop table if exists ALLOTTED_RESOURCE;
drop table if exists ALLOTTED_RESOURCE_CUSTOMIZATION;
+
+ drop table if exists AR_RECIPE;
drop table if exists HEAT_ENVIRONMENT;
@@ -111,6 +113,20 @@
primary key (MODEL_CUSTOMIZATION_UUID)
);
+ create table AR_RECIPE (
+ id integer not null auto_increment,
+ MODEL_NAME varchar(20) not null,
+ ACTION varchar(20) not null,
+ VERSION_STR varchar(20) not null,
+ SERVICE_TYPE varchar(45),
+ DESCRIPTION varchar(1200),
+ ORCHESTRATION_URI varchar(256) not null,
+ AR_PARAM_XSD varchar(2048),
+ RECIPE_TIMEOUT integer,
+ CREATION_TIMESTAMP datetime default CURRENT_TIMESTAMP,
+ primary key (id)
+ );
+
create table HEAT_ENVIRONMENT (
ARTIFACT_UUID varchar(200) not null,
NAME varchar(100) not null,