add custom attributes to cmdb_model table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2019 11:58 AM
Hi,
We've a requirement to add custom attributes to cmdb_model table. Which would be the best practice to add custom attributes to cmdb_model table. I believe it's not a best practice to add custom fields directly to the cmdb tables and we're supposed to use Class Manager to add an attribute to respective class.
Could somebody explain the best practice and the reasoning behind.
Thanks.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2019 12:01 PM
I dont think there is any such best practice to add the field only from class manager.
You can add it to the cmdb_ci table directly.
Now it is based on your requirement, if you want to add it to the cmdb_ci table or to one of its child table.
If you add it to the cmdb_ci table, the field will reflect in all child tables and you will be able to utilize it in all CI classes.
But if it is specific to a class, you should add the field only to that specific table, instead of adding it to cmdb_ci table.
Please mark this response as correct or helpful if it assisted you with your question.