Missing licence info added in pom file
[cps.git] / cps-ri / src / main / resources / changelog / db / changes / 05-loadData-fragment.yaml
1 #  ============LICENSE_START=======================================================
2 #  Copyright (C) 2021 Nordix Foundation
3 #  ================================================================================
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #        http://www.apache.org/licenses/LICENSE-2.0
9 #  Unless required by applicable law or agreed to in writing, software
10 #  distributed under the License is distributed on an "AS IS" BASIS,
11 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #  See the License for the specific language governing permissions and
13 #  limitations under the License.
14 #
15 #  SPDX-License-Identifier: Apache-2.0
16 #  ============LICENSE_END=========================================================
17
18 databaseChangeLog:
19   - changeSet:
20       author: cps
21       label: xnf-data-preload
22       id: 5
23       loadUpdateData:
24         encoding: UTF-8
25         file: 'changelog/db/changes/data/fragment.csv'
26         onlyUpdate: 'false'
27         primaryKey: 'id'
28         quotchar: '"'
29         separator: '|'
30         tableName: 'fragment'
31         columns:
32           - column:
33               header:  id
34               name:  id
35               type:  NUMERIC
36           - column:
37               header:  xpath
38               name:  xpath
39               type:  STRING
40           - column:
41               header:  attributes
42               name: attributes
43               type: CLOB
44           - column:
45               header:  anchor_id
46               name: anchor_id
47               type: NUMERIC
48           - column:
49               header:  parent_id
50               name: parent_id
51               type: NUMERIC
52           - column:
53               header:  dataspace_id
54               name: dataspace_id
55               type: NUMERIC
56           - column:
57               header:  schema_node_id
58               name: schema_node_id
59               type: NUMERIC
60
61   - changeSet:
62       author: cps
63       label: xnf-data-preload
64       id: 5.1
65       changes:
66         - sql:
67             comment: Fixes the id sequence after data insert with predefined ids
68             dbms: postgresql
69             sql: ALTER SEQUENCE IF EXISTS fragment_id_seq RESTART WITH 200