Skip to content

Commit

Permalink
fix: cleanup authority_data_stat foreign-key
Browse files Browse the repository at this point in the history
Closes: MODELINKS-233
  • Loading branch information
psmagin committed Apr 11, 2024
1 parent 276c27a commit 163dc47
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/resources/db/changelog/changelog-master.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
<include file="/changes/v2.0/create-reindex-job.xml" relativeToChangelogFile="true"/>
<include file="/changes/v2.0/replace_authority_data.xml" relativeToChangelogFile="true"/>
<include file="/changes/v2.0/update_authority_heading.xml" relativeToChangelogFile="true"/>
<include file="/changes/v2.0/cleanup_authority_data_stat_constraint.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>
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>

0 comments on commit 163dc47

Please sign in to comment.