<?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 https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.26.xsd" >
    <changeSet author="Sheldan" id="auto_load_macro-table">
        <createTable tableName="auto_load_macro">
            <column name="key" type="VARCHAR(255)">
                <constraints nullable="false" primaryKey="true" primaryKeyName="auto_load_macro_pkey"/>
            </column>
        </createTable>
    </changeSet>

    <!-- TODO doesnt work for initial config, because auto load macros are defined, but templates not present yet
    <changeSet author="Sheldan" id="auto_load_macro-fk_assignable_role_emote">
        <addForeignKeyConstraint baseColumnNames="key" baseTableName="auto_load_macro" constraintName="fk_auto_load_macro_template" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="key" referencedTableName="template" validate="true"/>
    </changeSet>
    -->
</databaseChangeLog>