<?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 http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd"
                   logicalFilePath="migration/node-services.changelog-init.xml">

    <changeSet author="R3.Corda" id="add_flow_metadata_columns">
        <addColumn tableName="node_transactions">
            <column name="initiator" type="NVARCHAR(128)">
                <constraints nullable="true"/>
            </column>
        </addColumn>
        <addColumn tableName="node_transactions">
            <column name="participants" type="NVARCHAR(1280)">
                <constraints nullable="true"/>
            </column>
        </addColumn>
        <addColumn tableName="node_transactions">
            <column name="states_to_record" type="INT">
                <constraints nullable="true"/>
            </column>
        </addColumn>
    </changeSet>

</databaseChangeLog>