When converting a physical data model (MySQL 5) to a logical data model, it seems that the table and column descriptions are not migrated to the logical model. I am using version 22.214.171.124. I have checked the entity and attribute descriptions on both ends of the model before executing.
Is this a bug or am I doing something wrong? If this isn’t possible today, and isn’t a bug can it be added as an enhancement?
Let me explain.
Notes in PER model are Description in LER model - and they are converted.
Please check out the Notes tab in your MySQL model and then the Description tab in your LER model.
Comments in PER model (comments in MySQL db, description in MS SQL db…) exist only in physical model (they are generated in SQL script). They do not exist in logical model therefore they are not converted.
If you have any questions, please write me back.
Vladka + TDM Team
Thanks for your response. Is there any workaround method to mass update the logical descriptions with the physical descriptions? Our model is large and started on an early version of data modeler - exists as PDM only. It would be very difficult to copy and paste descriptions for all entities and attributes into the new LDM.
Yes, this is possible via scripting.
Please find attached a script that will go through all entities and attributes in your physical model and copy their Comments to Notes. Comments will be copied to Notes only provided that the Notes section in particular entity/attribute is empty.
Run the script in Scripting Window (Tools menu, Expert mode must be turned on.)
Then feel free to convert the PER model to LER model. Description section will contain the comments then.
Note: Let me draw your attention to this script line:
var Model = app.Models.GetObject(0);
//… parameter in GetObject determines with which model the script should work.
//0 = first model listed in the Application View, 1 = second model listed in the Application View etc.
If you have any questions, please write us back. Thanks.
TransferCommentsToNotes.zip (618 Bytes)
Perfect, the script worked great. Many thanks.