<?xml version="1.1" 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-4.26.xsd" >
    <changeSet author="Sheldan" id="used_emote-add_usage_type">
        <addColumn tableName="used_emote">
            <column name="type" type="VARCHAR(255)" defaultValue="MESSAGE">
                <constraints nullable="false"/>
            </column>
        </addColumn>
        <dropIndex indexName="idx_used_emote" tableName="used_emote"/>
        <dropPrimaryKey constraintName="pk_used_emote" dropIndex="true" tableName="used_emote"/>
        <addPrimaryKey columnNames="server_id, emote_id, use_date, type" tableName="used_emote" constraintName="pk_used_emote" validate="true"/>
    </changeSet>

</databaseChangeLog>