0

我有一个这样的变更日志文件:

<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.9"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.9 http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd">
    <includeAll path="tables" relativeToChangelogFile="true" /> 
    <includeAll path="latest/triggers" relativeToChangelogFile="true" />
    <includeAll path="latest/functions" relativeToChangelogFile="true" />
    <includeAll path="latest/procedures" relativeToChangelogFile="true" />
    <includeAll path="latest/views" relativeToChangelogFile="true" />       
    <changeSet author="myname" id="CHANGESET_ID" />
</databaseChangeLog>

复制

我只是对设置 CHANGESET_ID 感到困惑<changeSet author="myname" id="CHANGESET_ID" />

它应该是最小的变更集数量还是最大的变更集值?

我们需要把它全部收集到这个文件中吗?

我会很感激有人解释如何正确设置变更集值

4

1 回答 1

1

你不需要<changeSet>那里(但你可以包括任何)。关于命名变更集,LiquiBase 最佳实践页面指出:

选择适合你的。有些使用从 1 开始的序列号并且在变更日志中是唯一的,有些选择描述性名称(例如“新地址表”)。

于 2013-01-29T16:19:08.640 回答