现在是自动化数据库模式更改的时候了
让我们记住为什么我们首先使用Artifactory !我们需要一个单一的真相来源。当然,我们有源代码控制,但这并不是放置准备发布的应用程序的最佳位置。Artifactory为组织中的任何人提供了一种机制,可以请求应用程序的最新发布版本,还可以包含新应用程序版本所需的任何依赖项。但是,大多数人都没有包括数据库模式更改。如果您将数据库作为体系结构的一部分,为什么不将其作为工件包括进来呢?这种疏忽导致了严重的问题。将SQL脚本塞进Artifactory并不能解决问题。是时候自动化数据库模式更改过程了。任何人都能做到。 I’ll demonstrate how you can use an open source tool called Liquibase to make database schema available for test environments. If you have a lot of database migrations to develop, your integration test environments should automatically be in sync with the defined migrations. The most efficient way to handle this is to let Jenkins push the Liquibase defined ChangeLog (whether XML, YAML, JSON, or annotated SQL) to your internal Artifactory. Thus, your application and dependent database changes will be part of a distinct, atomic release.

