- .xml文件
-
<?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"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd">
<include file="classpath:db/changelog/init_base.xml" relativeToChangelogFile="false"/>
<include file="classpath:db/changelog/init_log.xml" relativeToChangelogFile="false"/>
<include file="classpath:db/changelog/init_dic.xml" relativeToChangelogFile="false"/>
</databaseChangeLog>
-
<include file="classpath:db/changelog/init_dic.xml" relativeToChangelogFile="false"/>和
<include file="logset-20160408/0001_authorization_init.sql" relativeToChangelogFile="true"/>
<include>
的file属性表示要包含的changelog文件的路径,这个文件可以是LiquiBase支持的任意格式,relativeToChangelogFile如果为true,则表示file属性表示的文件路径是相对于根changelog而不是CLASSPATH的,默认为false。