Git上的Drupal,数据库怎么办? [英] Drupal on Git, what to do with the database?

查看:22
本文介绍了Git上的Drupal,数据库怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在与几个使用 Git 的人一起开发 Drupal 网站;重要的是该网站将使用没有路径的相同数据库,因为每个开发人员在另一个目录中都有开发版本.

I'm currently developing a Drupal website with a couple of people on Git; it is important that this website would be using the same database without the path because each developer has the dev version on another directory.

我该怎么做?

也许我应该让 Drupal 只在开发中使用 SQLite;然后我们可以将 SQLite 文件添加到 Git 存储库中.

Perhaps I should make Drupal work with SQLite on the development only; then we could add the SQLite file to the Git repository.

推荐答案

不要在数据库级别工作来存储站点组件,而是使用代码.借助 功能 模块.

Instead of working at the database level to store your site components, use code. Drupal has now great supports for exportables for views, content type, fields, input formats, etc. with the help of the features module.

参见开发 -> 分期 -> Drupal 中的生产工作流程问题代码驱动开发:在 Drupal 6 和 7 中有效使用特性 演示.

这篇关于Git上的Drupal,数据库怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆