<?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">

    <include file="migration/node-core.changelog-init.xml"/>
    <include file="migration/node-core.changelog-v3.xml"/>
    <include file="migration/node-core.changelog-v4.xml"/>
    <include file="migration/node-core.changelog-v5.xml"/>
    <include file="migration/node-core.changelog-pkey.xml"/>
    <include file="migration/node-core.changelog-postgres-blob.xml"/>
    <include file="migration/node-core.changelog-v8.xml"/>
    <include file="migration/node-core.changelog-tx-mapping.xml"/>
    <include file="migration/node-core.changelog-v9.xml"/>
    <include file="migration/node-core.changelog-v10.xml"/>
    <include file="migration/node-core.changelog-v11.xml"/>
    <!-- This migration was originally written within the same script as node-core.changelog-v14-data. However, node-core.changelog-v12
     runs a service with mapped schema which now has the new table so the table should be created before hand. The transfer of data
     can then happen later in node-core.changelog-v14-data. -->
    <include file="migration/node-core.changelog-v14-table.xml"/>
    <include file="migration/node-core.changelog-v12.xml"/>
    <!-- This migration (which creates extra columns in the transactions tables), must be run before the vault state migration (in
         vault-schema.changelog-v9.xml), as that will use the current hibernate mappings, and those require all DB columns to be created. -->
    <include file="migration/node-core.changelog-v13.xml"/>
    <!-- This change should be done before the v14-data migration. -->
    <include file="migration/node-core.changelog-v15.xml"/>
    <include file="migration/node-core.changelog-v16.xml"/>

    <!-- This must run after node-core.changelog-init.xml, to prevent database columns being created twice. -->
    <include file="migration/vault-schema.changelog-v9.xml"/>

    <include file="migration/node-core.changelog-v14-data.xml"/>

</databaseChangeLog>
