#93109Records can not be discarded from workspace
Description
When I try to discard news records in the workspaces module I get an SQL error: Unknown column ‘tablenames’ in ‘where clause’.
I tracked down the issue to here: https://github.com/TYPO3/TYPO3.CMS/blob/956c01e07885d5c1dffffb2a7ab8aae0db4df9d6/typo3/sysext/core/Classes/DataHandling/DataHandler.php#L5656
There it is hardcoded that the mm relation table always has a “tablenames” field. However this is not always the case, e.g. tx_news_domain_model_news.related (https://github.com/georgringer/news/blob/master/Configuration/TCA/tx_news_domain_model_news.php#L310)