Files
Athou_commafeed/commafeed-server/src/main/resources/changelogs/db.changelog-5.1.xml

29 lines
1.1 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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="add-unread-count-settings" author="athou">
<addColumn tableName="USERSETTINGS">
<column name="unreadCountTitle" type="BOOLEAN" value="false">
<constraints nullable="false" />
</column>
<column name="unreadCountFavicon" type="BOOLEAN" value="true">
<constraints nullable="false" />
</column>
</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>