<?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-000092-quickapps-uuid.xml">

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

  <!-- This changeset used to declared a uniqueConstraintName for uuid called `qa_uuid_uc`.
  Liquibase ignored this uniqueConstraintName before 3.6.0, so we dropped it as part of the upgrade
  to 3.6.2 to maintain backwards schema compatibility. -->
  <changeSet author="appian" id="000092.1.0">
    <validCheckSum></validCheckSum>
    <comment>Add uuid to quickapp table</comment>
    <addColumn tableName="quickapp">
      <!-- Liquibase requires a default value when adding a column to an existing table, but we are guaranteed
       that the table will be empty when this runs so it is safe to set the default as empty string -->
      <column name="uuid" type="${uuidType}" defaultValue="">
        <constraints nullable="false" unique="true"/>
      </column>
    </addColumn>
  </changeSet>

</databaseChangeLog>
