mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
add missing foreign key on feedentrystatuses.user_id
This commit is contained in:
@@ -14,4 +14,15 @@
|
||||
</addColumn>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="add-missing-fk-on-statuses-user" author="athou">
|
||||
<delete tableName="FEEDENTRYSTATUSES">
|
||||
<where>user_id not in (select id from USERS)</where>
|
||||
</delete>
|
||||
<addForeignKeyConstraint baseTableName="FEEDENTRYSTATUSES"
|
||||
baseColumnNames="user_id"
|
||||
constraintName="fk_feedentrystatuses_user"
|
||||
referencedTableName="USERS"
|
||||
referencedColumnNames="id" />
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
|
||||
Reference in New Issue
Block a user