<?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 http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
    <!--
        Added the constraints for entity Post.
    -->
    <changeSet id="20181217184615-2" author="jhipster">
        
        <addForeignKeyConstraint baseColumnNames="poster_id"
                                 baseTableName="post"
                                 constraintName="fk_post_poster_id"
                                 referencedColumnNames="id"
                                 referencedTableName="user_profile"/>

        <addForeignKeyConstraint baseColumnNames="privacy_setting_id"
                                 baseTableName="post"
                                 constraintName="fk_post_privacy_setting_id"
                                 referencedColumnNames="id"
                                 referencedTableName="privacy"/>

    </changeSet>
</databaseChangeLog>
