我的power designer 基本设置

1,cdm设计的时候默认会有unique code的约束,导致相同名字的字段会同进退,改了一个另一个也会改。这样就不得不采用user.user_code, project.project_code这样的字段名,而不能用user.code, project.code这样的写法。我不喜欢这种做法,觉得限制,因此在model options里面去掉此设置。

 

2,generate pdm的时候,在detail tab中可以自定义生成index和fk column的名字。我不太喜欢他默认的方式,把FK index names改为FK_%TABLE%_to_%REFR%, FK column name template改为%REFR%_%COLUMN%。 这样, 在cdm设计的时候,从project拉一个依赖关系到user,取名为created_by,生成的FK名字就叫created_by_code。你也可以换成自己喜欢的方式,比如叫created_by_user也行。

 

3. 生成mysql 5的sql脚本的时候,会说index name长度超限。版本11里面没有mysql5的配置文件,只有mysql 4的。版本15里面有mysql5的,但是copy到11里面没办法用。而版本15尚未找到keygen。于是,自己手工改一下数据库配置,连接上OSBC mysql 数据源后,database -> edit current database -> script -> Objects -> MaxConstLen -> 255。Index -> Maxlen -> 255。


Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically each day to your feed reader.

No comments yet.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

(required)

(required)