aboutsummaryrefslogtreecommitdiffstats
path: root/packages/base/src/files/install/mysql/data/170701_upgrade_script.sql
blob: f8ed77182f26abe64f55c5991763683cb7daebb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
-- ============LICENSE_START=======================================================
-- ONAP Policy Engine
-- ================================================================================
-- Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
-- ================================================================================
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
--      http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-- ============LICENSE_END=========================================================

use onap_sdk;

INSERT INTO policyeditorscopes (`id`, `scopename`, `created_date`, `created_by`, `modified_date`, `modified_by`) VALUES ('1', 'com', '2017-06-01 11:45:36', 'demo', '2017-06-01 11:45:36', 'demo');

alter table IntegrityAuditEntity modify jdbcUrl varchar(200) not null; 

alter table `onap_sdk`.`microservicemodels` 
add column `enumValues` longtext null default null after `version`, 
add column `annotation` longtext null after `enumValues`;

drop table if exists FWTag; 
CREATE TABLE FWTag(
Id int NOT NULL AUTO_INCREMENT,
tagName VARCHAR(45) NOT NULL,
description VARCHAR(1024),
tagValues VARCHAR(1024) NOT NULL,
CREATED_DATE TIMESTAMP NOT NULL default current_timestamp,
CREATED_BY VARCHAR(45) NOT NULL,
MODIFIED_DATE TIMESTAMP NOT NULL,
MODIFIED_BY VARCHAR(45) NOT NULL,
PRIMARY KEY(ID)
);

drop table if exists FWTagPicker; 
CREATE TABLE FWTagPicker(
ID INT NOT NULL AUTO_INCREMENT,
tagPickerName VARCHAR(45) NOT NULL,
DESCRIPTION VARCHAR(1024),
tags VARCHAR(1024) NOT NULL,
networkRole varchar(64),
CREATED_DATE TIMESTAMP NOT NULL default current_timestamp,
CREATED_BY VARCHAR(45) NOT NULL,
MODIFIED_DATE TIMESTAMP NOT NULL,
MODIFIED_BY VARCHAR(45) NOT NULL,
PRIMARY KEY(ID)
);

drop table if exists brmsdependency;
CREATE TABLE brmsdependency (
id int not null auto_increment,
dependency_name varchar(1024) not null,
description varchar(1024),
created_by varchar(45) not null,
created_date timestamp not null default current_timestamp,
modified_by varchar(45),
modified_date timestamp,
dependency longtext not null,
primary key(id)
);

drop table if exists brmscontroller;
CREATE TABLE brmscontroller (
id int not null auto_increment,
controller_name varchar(1024) not null,
description varchar(1024),
created_by varchar(45) not null,
created_date timestamp not null default current_timestamp,
modified_by varchar(45),
modified_date timestamp,
controller longtext not null,
primary key(id)
);

drop table if exists microserviceattribute; 
CREATE TABLE microserviceattribute(
ID INT NOT NULL AUTO_INCREMENT,
name VARCHAR(255) NOT NULL,
value VARCHAR(1024),
modelName VARCHAR(1024) NOT NULL,
PRIMARY KEY(ID)
);