When you install Drupal with MySQL as database, I suggest using the fine "MySQL Workbench" and reverse engineer the database. No matter the structure, you will find a nice ER-diagramm no matter the Drupal version.
For more figures: Look through the docs and the community pages. There is, for example, a nice illustration how the forms are working.
Concerning the database diagrams. Drupal manage its database schema dynamically. Most module will create their own tables when installed, and some of them will create tables when higher-level object are created through the UI or via code. For instance, the SQL storage (ie. the default one) for the Field API will create tables for entity bundles and their fields.
Since the database schema is dynamic, it cannot be presented in a single diagram. This would make sense. You cam however, generate a diagram from a Drupal database using various reverse engineering tools.
发布评论
评论(3)
当您安装使用 MySQL 作为数据库的 Drupal 时,我建议使用精细的“MySQL Workbench”并反向设计数据库。无论结构如何,无论 Drupal 版本如何,您都会找到漂亮的 ER 图表。
有关更多数据:查看文档和社区页面。例如,有一个很好的说明表单是如何工作的。
When you install Drupal with MySQL as database, I suggest using the fine "MySQL Workbench" and reverse engineer the database. No matter the structure, you will find a nice ER-diagramm no matter the Drupal version.
For more figures: Look through the docs and the community pages. There is, for example, a nice illustration how the forms are working.
这是 Drupal 7 的图表:
Here is the diagram for Drupal 7:
关于数据库图表。 Drupal 动态管理其数据库模式。大多数模块在安装时都会创建自己的表,其中一些模块会在通过 UI 或代码创建更高级别的对象时创建表。例如,Field API 的 SQL 存储(即默认存储)将为实体包及其字段创建表。
由于数据库模式是动态的,因此无法在单个图表中呈现。这是有道理的。然而,您可以使用各种逆向工程工具从 Drupal 数据库生成图表。
Concerning the database diagrams. Drupal manage its database schema dynamically. Most module will create their own tables when installed, and some of them will create tables when higher-level object are created through the UI or via code. For instance, the SQL storage (ie. the default one) for the Field API will create tables for entity bundles and their fields.
Since the database schema is dynamic, it cannot be presented in a single diagram. This would make sense. You cam however, generate a diagram from a Drupal database using various reverse engineering tools.