<?xml version="1.0" 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-2.0.xsd"
                   logicalFilePath="db-changelog-000147-add-pks.xml">

  <changeSet author="appian" id="tag-000146">
    <tagDatabase tag="000146"/>
  </changeSet>

  <changeSet author="appian" id="000147.0.0">
    <comment>Add composite pk certificate_chains</comment>
    <addPrimaryKey columnNames="certificate_id, order_idx" tableName="certificate_chains"/>
  </changeSet>

  <changeSet author="appian" id="000147.0.1">
    <comment>Add composite pk to record_type_filters</comment>
    <addPrimaryKey columnNames="record_type_id, filter_id, order_idx" tableName="record_type_filters"/>
  </changeSet>

</databaseChangeLog>
