Although the task is really a minor change: one thing makes me a bit confusing.
Till, how do you distribute an update of the field `doctype_def`, inside the doctype table? It seems that you don't perform db updates
during ISPConfig install (update) time, when forms have changed... - so how would this be done??
The other post in this forum ("ISPConfig doctype (form) handling
"), regarding to a changed doctype handling from database to filesystem, didn't help me. There is no /home/admispconfig/ispconfig/lib/doctypes/ folder and maybe you've changed the doctype handling again?
EDIT: Oh - I had never supposed that you delete the comlete db during update. So my grepping after "ALTER TABLE" had no chance there