<?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="assignableRoleModule" value="(SELECT id FROM module WHERE name = 'assignableRoles')"/>
    <property name="assignableRoleFeature" value="(SELECT id FROM feature WHERE key = 'assignableRole')"/>
    <changeSet  author="Sheldan"  id="assignable_roles-commands">
        <insert tableName="command">
            <column name="name" value="addRoleToAssignableRolePlace"/>
            <column name="module_id" valueComputed="${assignableRoleModule}"/>
            <column name="feature_id" valueComputed="${assignableRoleFeature}"/>
        </insert>
        <insert tableName="command">
            <column name="name" value="setupAssignableRolePlace"/>
            <column name="module_id" valueComputed="${assignableRoleModule}"/>
            <column name="feature_id" valueComputed="${assignableRoleFeature}"/>
        </insert>
        <insert tableName="command">
            <column name="name" value="activateAssignableRolePlace"/>
            <column name="module_id" valueComputed="${assignableRoleModule}"/>
            <column name="feature_id" valueComputed="${assignableRoleFeature}"/>
        </insert>
        <insert tableName="command">
            <column name="name" value="deactivateAssignableRolePlace"/>
            <column name="module_id" valueComputed="${assignableRoleModule}"/>
            <column name="feature_id" valueComputed="${assignableRoleFeature}"/>
        </insert>
        <insert tableName="command">
            <column name="name" value="removeRoleFromAssignableRolePlace"/>
            <column name="module_id" valueComputed="${assignableRoleModule}"/>
            <column name="feature_id" valueComputed="${assignableRoleFeature}"/>
        </insert>
        <insert tableName="command">
            <column name="name" value="changeAssignableRolePlaceConfig"/>
            <column name="module_id" valueComputed="${assignableRoleModule}"/>
            <column name="feature_id" valueComputed="${assignableRoleFeature}"/>
        </insert>
        <insert tableName="command">
            <column name="name" value="deleteAssignableRolePlace"/>
            <column name="module_id" valueComputed="${assignableRoleModule}"/>
            <column name="feature_id" valueComputed="${assignableRoleFeature}"/>
        </insert>
        <insert tableName="command">
            <column name="name" value="createAssignableRolePlace"/>
            <column name="module_id" valueComputed="${assignableRoleModule}"/>
            <column name="feature_id" valueComputed="${assignableRoleFeature}"/>
        </insert>
        <insert tableName="command">
            <column name="name" value="showAssignableRolePlaceConfig"/>
            <column name="module_id" valueComputed="${assignableRoleModule}"/>
            <column name="feature_id" valueComputed="${assignableRoleFeature}"/>
        </insert>
        <insert tableName="command">
            <column name="name" value="editAssignableRolePlaceText"/>
            <column name="module_id" valueComputed="${assignableRoleModule}"/>
            <column name="feature_id" valueComputed="${assignableRoleFeature}"/>
        </insert>
        <insert tableName="command">
            <column name="name" value="moveAssignableRolePlace"/>
            <column name="module_id" valueComputed="${assignableRoleModule}"/>
            <column name="feature_id" valueComputed="${assignableRoleFeature}"/>
        </insert>
        <insert tableName="command">
            <column name="name" value="showAssignableRolePlaces"/>
            <column name="module_id" valueComputed="${assignableRoleModule}"/>
            <column name="feature_id" valueComputed="${assignableRoleFeature}"/>
        </insert>
        <insert tableName="command">
            <column name="name" value="addAssignableRoleCondition"/>
            <column name="module_id" valueComputed="${assignableRoleModule}"/>
            <column name="feature_id" valueComputed="${assignableRoleFeature}"/>
        </insert>
        <insert tableName="command">
            <column name="name" value="removeAssignableRoleCondition"/>
            <column name="module_id" valueComputed="${assignableRoleModule}"/>
            <column name="feature_id" valueComputed="${assignableRoleFeature}"/>
        </insert>
    </changeSet>

</databaseChangeLog>