<?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"
    xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
    xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd
    http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">

    <!--
        Change the type of vmwaretopologyinfo field in assets to 'text' so that they can
        handle complex network relations.
    -->
    <changeSet author="agalue" id="1.12.2-changeTypeOfVmwareTopologyInfo">
        <modifyDataType tableName="assets" columnName="vmwaretopologyinfo" newDataType="text" />
        <rollback>
            <modifyDataType tableName="assets" columnName="vmwaretopologyinfo" newDataType="varchar(1023)" />
        </rollback>
    </changeSet>

</databaseChangeLog>
