How to fix the «DDL statements are not allowed in transactions» failure with the addCommitCallback()

See also: