<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
                   xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
                   xmlns:pro="http://www.liquibase.org/xml/ns/pro"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog dbchangelog.xsd
    http://www.liquibase.org/xml/ns/dbchangelog-ext dbchangelog.xsd
    http://www.liquibase.org/xml/ns/pro dbchangelog.xsd" >
    <property name="utilityModule" value="(SELECT id FROM module WHERE name = 'utility')"/>
    <property name="suggestionFeature" value="(SELECT id FROM feature WHERE key = 'suggestion')"/>

    <changeSet  author="Sheldan"  id="suggestion-commands">
        <insert tableName="command">
            <column name="name" value="accept"/>
            <column name="module_id" valueComputed="${utilityModule}"/>
            <column name="feature_id" valueComputed="${suggestionFeature}"/>
        </insert>
        <insert tableName="command">
            <column name="name" value="reject"/>
            <column name="module_id" valueComputed="${utilityModule}"/>
            <column name="feature_id" valueComputed="${suggestionFeature}"/>
        </insert>
        <insert tableName="command">
            <column name="name" value="suggest"/>
            <column name="module_id" valueComputed="${utilityModule}"/>
            <column name="feature_id" valueComputed="${suggestionFeature}"/>
        </insert>
        <insert tableName="command">
            <column name="name" value="unSuggest"/>
            <column name="module_id" valueComputed="${utilityModule}"/>
            <column name="feature_id" valueComputed="${suggestionFeature}"/>
        </insert>
        <insert tableName="command">
            <column name="name" value="veto"/>
            <column name="module_id" valueComputed="${utilityModule}"/>
            <column name="feature_id" valueComputed="${suggestionFeature}"/>
        </insert>
    </changeSet>

</databaseChangeLog>