是时候自动化数据库模式更改了
让我们首先记住为什么要使用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.


