This does not answer a direct question, but answers the problem that we are trying to solve.
ContentTypes is fragile due to the contenttypes ids table.
In our case, we ended up storing a set of related objects that we wanted to synchronize by version in the JSON structure in the database field. We decided that it would be a good idea to store any group of related objects that will be versioned in one very โcontainingโ, well-defined place.
source share