Erwin 带注释(comment )

1、 Database>Pre & Post Script > Model-level

%ForEachTable()
{
    alter TABLE %TableName COMMENT = '%EntityName'  ENGINE=InnoDB DEFAULT CHARSET=utf8;
 
    %ForEachColumn()
    {
        ALTER TABLE %TableName MODIFY COLUMN  `%ColName` %AttDatatype %AttNullOption COMMENT '%AttName';
      }
}

 

posted @ 2017-05-16 11:47  侠之大者kamil  阅读(1319)  评论(0编辑  收藏  举报