diff options
author | Sébastien Determe <sebastien.determe@intl.att.com> | 2019-11-18 10:56:42 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-11-18 10:56:42 +0000 |
commit | cfe18b62c2c3cfabdf4322b02c2e49e6ea284d3c (patch) | |
tree | f03aeb527ef1a29e0cce40f836fe0b04e54f0941 /extra/sql | |
parent | 4dc849f66bf9c8749ca8d2ef228fceee4d358ca1 (diff) | |
parent | 289e8e1f1858e970f92b50a1e601521edeefd44f (diff) |
Merge "Create Service object"
Diffstat (limited to 'extra/sql')
-rw-r--r-- | extra/sql/bulkload/create-tables.sql | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/extra/sql/bulkload/create-tables.sql b/extra/sql/bulkload/create-tables.sql index 0e15d4d3a..dafd80034 100644 --- a/extra/sql/bulkload/create-tables.sql +++ b/extra/sql/bulkload/create-tables.sql @@ -23,9 +23,9 @@ dcae_deployment_status_url varchar(255), global_properties_json json, last_computed_state varchar(255) not null, - model_properties_json json, operational_policy_schema json, svg_representation MEDIUMTEXT, + service_uuid varchar(255), primary key (name) ) engine=InnoDB; @@ -52,11 +52,24 @@ primary key (name) ) engine=InnoDB; + create table services ( + service_uuid varchar(255) not null, + name varchar(255) not null, + resource_details json, + service_details json, + primary key (service_uuid) + ) engine=InnoDB; + alter table loop_logs add constraint FK1j0cda46aickcaoxqoo34khg2 foreign key (loop_id) references loops (name); + alter table loops + add constraint FK4b9wnqopxogwek014i1shqw7w + foreign key (service_uuid) + references services (service_uuid); + alter table loops_microservicepolicies add constraint FKem7tp1cdlpwe28av7ef91j1yl foreign key (microservicepolicy_id) |