使用 AccuRev 的商店如何处理数据库更改?
我们考虑使用 AccuRev,因为流的想法对于像我们这样非常敏捷的商店来说很有意义。但管理变更集的一个问题是:人们如何处理数据库变更?
每个开发者都有本地开发者数据库吗?
如果是这样,当您将更改推广到“主流”流或其他任何名称时,您将如何推广这些数据库更改?
We've considered using AccuRev because the stream idea makes a lot of sense for very agile shops such as ours. One question though for managing change sets: how are people handling database changes?
Does each developer have a local developer database?
And if so, how are you promoting these DB changes when you promote changes to "main" stream , or whatever it's called?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个更普遍的问题,即如何使数据库受到版本控制,因为它不直接依赖于 Accurev。以下是一些已回答问题的链接:
如何跟踪数据库源代码控制发生变化?
https://stackoverflow.com/questions/4952/database-version-control
以及来自编码的链接恐怖:
http://www.codinghorror.com/blog/2008/02/get-your-database-under-version-control.html
我所做的是,我有 .sql 文件来创建一个新的数据库、另一个用于从特定版本更新到新版本的 .sql 脚本以及在数据库中插入数据的备份 .sql 文件。这些都是非常易于维护的文本文件,可以由源代码控制系统很好地处理。实际的二进制数据库文件只是派生对象,无论如何都不应该对它们进行版本控制。
This is a more general question of how to get your database under version control, because it is not directy dependent on Accurev. Here are some links to questions already answered:
How do you track database changes in source control?
https://stackoverflow.com/questions/4952/database-version-control
And a link from Coding Horror:
http://www.codinghorror.com/blog/2008/02/get-your-database-under-version-control.html
What I do is that I have .sql files to create a fresh database, another .sql scripts to update from a specific version to a new one and also backup .sql files that insert data in a database. Those are all very well maintainable text files that get handled well by source control system. The actual binary DB files are just derived objects and those should not be versioned anyway.