【发布时间】:2021-03-27 06:55:35
【问题描述】:
我正在使用 liquibase 来管理我的数据库,并使用单个变更集启动项目,其中创建了所有基本表。现在我的客户想要更改该数据库并且我正在启动其他变更集,但我担心它会在一段时间内变得一团糟(例如,对于开发人员来说不容易阅读),因为第一个变更集现在不是真正的代表数据库架构。
例子:
<changeset id="1" author="natty">
<createTable tableName="my_table">
<column name="my_column" type="integer" />
</createTable>
</changeset>
<changeset id="2" author="natty">
<addColumn tableName="my_table">
<column name="another_column" type="varchar(10)" />
</addColumn>
</changeset>
[...]
<changeset id = "100" author="natty">
...
</changeset>
我现在需要全面了解所有变更集才能理解我的数据库架构。
如何避免有多个变更集?
【问题讨论】: