每日构建和 SQL Server 更改

发布于 2024-07-09 16:34:22 字数 256 浏览 7 评论 0原文

我将尝试自动化日常构建,这将涉及数据库更改、代码生成,当然还有构建、提交和稍后的部署。 目前,团队中的每个开发人员分别将他们对数据库的结构和数据更改包含在两个文件中,例如6.029_Brady_Data.sql。 每个结构和数据文件都包含一个版本的所有更改,但所有更改都是可重复的,即带有 EXISTS 检查等,因此如果需要,它们可以每天运行。

我能做些什么来使这个过程更加有序,目前基本上是连接所有结构更改文件,重复运行它们直到解决所有依赖关系,然后重复数据更改文件。

I am about to try and automate a daily build, which will involve database changes, code generation, and of course a build, commit, and later on a deployment. At the moment, each developer on the team includes their structure and data changes for the DB in two files respectively, e.g. 6.029_Brady_Data.sql. Each structure and data file includes all changes for a version, but all changes are repeatable, i.e. with EXISTS checks etc, so they can be run every day if needed.

What can I do to bring more order to this process, which is currently basically concatenate all structure change files, run them repeatedly until all dependencies are resolved, then repeat with the data change files.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清风疏影 2024-07-16 16:34:22

使用 Visual Studio 数据库版本创建一个数据库项目,将其放入源代码管理中并让开发人员签入他们的代码。 我已经做到了这一点,它非常适合日常构建,并为构建数据库代码提供了大量支持。 请参阅此博客文章了解功能

http://www.vitalygorn.com/blog/post/2008/01/Handling-Database-easily-with-Visual-Studio-2008.aspx

Create a database project using Visual studio database edition, put it into source control and let the developers check in their code. I have done this and it works good with daily builds and offer a lot of support for structuring your database code. See this blog post for features

http://www.vitalygorn.com/blog/post/2008/01/Handling-Database-easily-with-Visual-Studio-2008.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文