<?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"
        xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd
        http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
    <changeSet id="1" author="gshrivastav">
        <sql dbms="mysql" endDelimiter=";;" splitStatements="true" stripComments="true">
            DROP TABLE IF EXISTS release_approval_comments;;
  
            CREATE TABLE release_approval_comments (
            id INT (10) UNSIGNED NOT NULL AUTO_INCREMENT,
            release_status_id INT (10) UNSIGNED,
            comment TEXT,
            datetime DATETIME,
            PRIMARY KEY (id),
            KEY FK_release_approval_comments (release_status_id),
            CONSTRAINT FK_release_approval_comments FOREIGN KEY (release_status_id) REFERENCES release_status (release_status_id)
           );;
        </sql>
        <rollback>
            DROP TABLE IF EXISTS release_approval_comments;;
        </rollback>
    </changeSet>
</databaseChangeLog>
