<?xml version="1.0" encoding="UTF-8"?>
<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-4.27.xsd">

  <!--
    relativeToChangelogFile=true чтобы пути ресолвились относительно master.xml,
    а не от Liquibase searchPath. Иначе при подключении из ordinis-app
    (тесты) Liquibase не находит changes/ внутри JAR.
  -->
  <include file="changes/0001-extensions.xml" relativeToChangelogFile="true"/>
  <include file="changes/0002-dictionary-definitions.xml" relativeToChangelogFile="true"/>
  <include file="changes/0003-dictionary-records.xml" relativeToChangelogFile="true"/>
  <include file="changes/0004-audit-log.xml" relativeToChangelogFile="true"/>
  <include file="changes/0005-outbox-events.xml" relativeToChangelogFile="true"/>
  <include file="changes/0006-idempotency-keys.xml" relativeToChangelogFile="true"/>
  <include file="changes/0007-add-version-columns.xml" relativeToChangelogFile="true"/>
  <include file="changes/0008-fix-scope-check-uppercase.xml" relativeToChangelogFile="true"/>
  <include file="changes/0009-fix-records-scope-check.xml" relativeToChangelogFile="true"/>
  <include file="changes/0010-envers-tables.xml" relativeToChangelogFile="true"/>
  <include file="changes/0011-outbox-dlq.xml" relativeToChangelogFile="true"/>
  <include file="changes/0012-audit-log-ipaddress-varchar.xml" relativeToChangelogFile="true"/>
  <include file="changes/0013-webhook-subscriptions.xml" relativeToChangelogFile="true"/>
  <include file="changes/0014-webhook-deliveries.xml" relativeToChangelogFile="true"/>
  <include file="changes/0015-backfill-latlon-geometry.xml" relativeToChangelogFile="true"/>
  <include file="changes/0016-record-dependents-index.xml" relativeToChangelogFile="true"/>
  <include file="changes/0017-redis-projection-flag.xml" relativeToChangelogFile="true"/>
  <include file="changes/0018-trgm-search-index.xml" relativeToChangelogFile="true"/>
  <include file="changes/0019-approval-workflow-v2.xml" relativeToChangelogFile="true"/>
  <include file="changes/0020-fix-draft-status-case.xml" relativeToChangelogFile="true"/>
  <include file="changes/0021-notifications.xml" relativeToChangelogFile="true"/>
  <include file="changes/0022-schema-workflow.xml" relativeToChangelogFile="true"/>

</databaseChangeLog>
