DMAAP-83 Initial code import
[dmaap/dbcapi.git] / src / main / resources / schema_2.sql
1 ---
2 -- ============LICENSE_START=======================================================
3 -- OpenECOMP - org.openecomp.dmaapbc
4 -- ================================================================================
5 -- Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 -- ================================================================================
7 -- Licensed under the Apache License, Version 2.0 (the "License");
8 -- you may not use this file except in compliance with the License.
9 -- You may obtain a copy of the License at
10 -- 
11 --      http://www.apache.org/licenses/LICENSE-2.0
12 -- 
13 -- Unless required by applicable law or agreed to in writing, software
14 -- distributed under the License is distributed on an "AS IS" BASIS,
15 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 -- See the License for the specific language governing permissions and
17 -- limitations under the License.
18 -- ============LICENSE_END=========================================================
19 ---
20
21 @alter table dcae_location      
22         add column      subnet          VARCHAR(100),
23         add column      status          VARCHAR(100)
24 ;
25
26 @alter table dr_node
27         add column      last_mod        TIMESTAMP,
28         add column      status          VARCHAR(100)
29 ;
30 @alter table    dr_pub
31         add column      last_mod        TIMESTAMP
32 ;
33 @alter table dr_sub
34         add column      last_mod        TIMESTAMP
35 ;
36
37 @alter table mr_cluster
38         add column      status          VARCHAR(100)
39 ;
40 @alter table feed
41         add column      last_mod        TIMESTAMP,
42         add column      format_uuid     VARCHAR(100)
43 ;
44 @alter table    topic
45         add column      format_uuid     VARCHAR(100)
46 ;
47
48 @alter table mirror_maker
49         add column      status          VARCHAR(100)
50 ;
51 update dmaapbc_sch_ver set version = 2 where version = 1;