1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2023 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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 # SPDX-License-Identifier: Apache-2.0
17 # ============LICENSE_END=========================================================
26 indexName: FKI_FRAGMENT_DATASPACE_ID_FK
33 indexName: FKI_FRAGMENT_DATASPACE_ID_FK
40 - dropUniqueConstraint:
41 constraintName: fragment_dataspace_id_anchor_id_xpath_key
43 - addUniqueConstraint:
44 columnNames: anchor_id, xpath
45 constraintName: fragment_anchor_id_xpath_key
48 - dropUniqueConstraint:
49 constraintName: fragment_anchor_id_xpath_key
51 - addUniqueConstraint:
52 columnNames: dataspace_id, anchor_id, xpath
53 constraintName: fragment_dataspace_id_anchor_id_xpath_key
60 - dropForeignKeyConstraint:
61 baseTableName: fragment
62 constraintName: fragment_dataspace_id_fkey
64 - addForeignKeyConstraint:
65 baseColumnNames: dataspace_id
66 baseTableName: fragment
67 constraintName: fragment_dataspace_id_fkey
69 initiallyDeferred: false
72 referencedColumnNames: id
73 referencedTableName: dataspace
81 columnName: dataspace_id
91 path: changelog/db/changes/19-repopulate-dataspace-id-for-rollback.sql
92 - addNotNullConstraint:
94 columnName: dataspace_id
95 columnDataType: INTEGER
101 - addNotNullConstraint:
103 columnName: anchor_id
104 columnDataType: BIGINT
106 - dropNotNullConstraint:
108 columnName: anchor_id
109 columnDataType: BIGINT