-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: cleanup authority_data_stat foreign-key
Closes: MODELINKS-233
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/resources/db/changelog/changes/v2.0/cleanup_authority_data_stat_constraint.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd"> | ||
|
||
<changeSet id="MODELINKS-234@@cleanup-authority_data_stat-foreign-key" author="Pavlo_Smahin"> | ||
<preConditions onFail="MARK_RAN"> | ||
<foreignKeyConstraintExists foreignKeyName="fk_authority_data_stat_authority_id" | ||
schemaName="${database.defaultSchemaName}" | ||
foreignKeyTableName="authority_data_stat"/> | ||
</preConditions> | ||
|
||
<comment>Cleanup fk_authority_data_stat_authority_id constraint from authority_data_stat table</comment> | ||
<dropForeignKeyConstraint baseTableName="authority_data_stat" constraintName="fk_authority_data_stat_authority_id"/> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |