Add schema knowledge of whether to use database logging on specific tables
Proposal
- Add a new parameter 'database_logging' to the dao schema (as documented here)
- Update Gencode to add this to the tables DAO
- regenerate the dao
- let it go stale
- regenerate the dao
- let it go stale
- regenerate the dao
- quick merge it
- update the function & test to pay attention - see this pr for clues as to where both live
- bonus - rip out all the exceptions in the function that exist because we don't have ^^ (eg. skipping civicrm_log)
See https://github.com/civicrm/civicrm-core/pull/20918/files#issuecomment-884095655
Note the existing parameter 'log' relates to the civicrm_log table