bfb0cf411c15950915d062218797658ace5f0ac6
[cps.git] / cps-ri / src / main / resources / changelog / db / changes / 06-delete-not-required-fragment-index.yaml
1 # ============LICENSE_START=======================================================
2 # Copyright (c) 2021 Bell Canada.
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 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 # ============LICENSE_END=========================================================
16
17 databaseChangeLog:
18   - changeSet:
19       id: 6
20       author: cps
21       comment: Drop unique index for dataspace and xpath on fragment table
22       changes:
23         - dropIndex:
24             indexName: UQ_FRAGMENT_XPATH
25             tableName: fragment
26       rollback:
27         - createIndex:
28             columns:
29               - column:
30                   name: xpath
31               - column:
32                   name: dataspace_id
33             indexName: UQ_FRAGMENT_XPATH
34             tableName: fragment
35             unique: true