<分区>
我觉得我的商店有一个漏洞,因为我们没有一个可靠的流程来对我们的数据库架构更改进行版本控制。我们做了很多备份,所以我们或多或少都被覆盖了,但以这种方式依赖你的最后一道防线是不好的做法。
令人惊讶的是,这似乎是一个共同话题。我谈过的许多商店都忽略了这个问题,因为他们的数据库不经常更改,而且他们基本上只是尽量做到一丝不苟。
不过,我知道这个故事是怎么回事。事情排错了,东西不见了,这只是时间问题。
对此有什么最佳做法吗?有哪些对您有用的策略?
<分区>
我觉得我的商店有一个漏洞,因为我们没有一个可靠的流程来对我们的数据库架构更改进行版本控制。我们做了很多备份,所以我们或多或少都被覆盖了,但以这种方式依赖你的最后一道防线是不好的做法。
令人惊讶的是,这似乎是一个共同话题。我谈过的许多商店都忽略了这个问题,因为他们的数据库不经常更改,而且他们基本上只是尽量做到一丝不苟。
不过,我知道这个故事是怎么回事。事情排错了,东西不见了,这只是时间问题。
对此有什么最佳做法吗?有哪些对您有用的策略?
最佳答案
必读Get your database under version control .查看 K. Scott Allen 的系列文章。
When it comes to version control, the database is often a second or even third-class citizen. From what I've seen, teams that would never think of writing code without version control in a million years-- and rightly so-- can somehow be completely oblivious to the need for version control around the critical databases their applications rely on. I don't know how you can call yourself a software engineer and maintain a straight face when your database isn't under exactly the same rigorous level of source control as the rest of your code. Don't let this happen to you. Get your database under version control.
关于database - 您是否对数据库项目使用源代码管理?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/115369/