<?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">
    <changeSet author="fx (generated)" id="1392966694116-8">
        <dropNotNullConstraint columnDataType="int8" columnName="parentgame_id" tableName="team"/>
        <dropForeignKeyConstraint baseTableName="triggerinstance" baseTableSchemaName="public" constraintName="fk_triggerinstance_variableinstance_id"/>
        <dropTable tableName="triggerinstance"/>
    </changeSet>
</databaseChangeLog>

<?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">
    <changeSet author="fx (generated)" id="1392966695116-9">
        <sql>
            DELETE FROM listinstance c
            WHERE EXISTS (SELECT * FROM mcqquestioninstance q
            WHERE c.variableinstance_id = q.variableinstance_id)
        </sql>
    </changeSet>
</databaseChangeLog>

Fix issue on QuestionDescriptor destruction
Fix issue on QuestionDescriptor destruction
