<?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">

	<include file="1.7.1/ackd.xml" />
	<include file="1.7.1/assets.xml" />
	<include file="1.7.1/datalinkinterface.xml" />
	<include file="1.7.1/elements.xml" />
	<include file="1.7.1/maps.xml" />
	<include file="1.7.1/snmpcollect.xml" />

	<!-- miscellaneous stuff -->
	<changeSet author="rangerrick" id="1.7.1-expand-snmpPhysAddr">
		<modifyDataType tableName="snmpinterface" columnName="snmpphysaddr" newDataType="varchar(16)" />
		<rollback>
			<modifyDataType tableName="snmpinterface" columnName="snmpphysaddr" newDataType="char(12)" />
		</rollback>
	</changeSet>
	<changeSet author="brozow" id="1.7.1-add-last-capsd-poll">
		<validCheckSum>3:4a08fa054ca528a4acc63ecbffa7e7cd</validCheckSum>
		<preConditions onFail="MARK_RAN">
			<not><columnExists tableName="snmpinterface" columnName="snmplastcapsdpoll" /></not>
		</preConditions>
		<addColumn tableName="snmpinterface">
			<column name="snmplastcapsdpoll" type="TIMESTAMP WITH TIME ZONE" />
		</addColumn>
		<rollback>
			<dropColumn tableName="snmpinterface" columnName="snmplastcapsdpoll" />
		</rollback>
	</changeSet>

</databaseChangeLog>
