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

30 lines
1.2 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">
<validCheckSum>9:b4a4044ca0f7d9987536083943d4f1b4</validCheckSum>
<addColumn tableName="USERSETTINGS">
<column name="unreadCountTitle" type="BOOLEAN" valueBoolean="false">
<constraints nullable="false" />
</column>
<column name="unreadCountFavicon" type="BOOLEAN" valueBoolean="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>