Merge "Convert license header to SQL comment"
[policy/engine.git] / packages / base / src / files / install / mysql / data / 170701_upgrade_script.sql
index 45b4361..f8ed771 100644 (file)
@@ -1,30 +1,28 @@
-/*-
-* ============LICENSE_START=======================================================
-* ECOMP 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 ecomp_sdk;
-ALTER TABLE fwtagpicker add networkRole varchar(64);
+-- ============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 `ecomp_sdk`.`microservicemodels` 
+alter table `onap_sdk`.`microservicemodels` 
 add column `enumValues` longtext null default null after `version`, 
 add column `annotation` longtext null after `enumValues`;
 
@@ -47,6 +45,7 @@ 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,
@@ -87,4 +86,4 @@ name VARCHAR(255) NOT NULL,
 value VARCHAR(1024),
 modelName VARCHAR(1024) NOT NULL,
 PRIMARY KEY(ID)
-);
\ No newline at end of file
+);