zheng/project-datamodel/README.md

27 lines
767 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# project-datamodel
本目录包含数据模型、数据库脚本等
## 文件说明
- zheng.apm 上次修改数据模型快照file-->save as保存格式为Archived PDM(XML)得到)
- zheng.pdm 数据模型
- zheng.png 模型图
- zheng.sql 最新脚本
## 操作说明
- PowerDesigner打开`zheng.pdm`修改
- 选择database-->apply model changes to database选择sql保存路径在get database schema一栏中选择using an archive model选择`zheng.apm`,得到只有更新升级的脚本
- 运行更新升级脚本,得到最新数据结构(保留旧数据),导出得到最新`zheng.sql`
- PowerDesigner全选Edit-->Export Image...导出`zheng.png`
- PowerDesigner导出`zheng.apm`
- PowerDesigner保存得到`zheng.pdm`