<?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="create_aes_encryption_keys_table">
        <createTable tableName="node_aes_encryption_keys">
            <column name="key_id" type="VARCHAR(36)">
                <constraints nullable="false"/>
            </column>
            <column name="key_material" type="VARBINARY(512)">
                <constraints nullable="false"/>
            </column>
        </createTable>
    </changeSet>

    <changeSet author="R3.Corda" id="node_aes_encryption_keys_pkey">
        <addPrimaryKey constraintName="node_aes_encryption_keys_pkey" tableName="node_aes_encryption_keys" columnNames="key_id"/>
    </changeSet>

</databaseChangeLog>
