Best way to create a new DB table in an extension with logging
Per Lobo's comment - the logging triggers &amp; tables are automatically created. But, from experience sometimes you have to turn logging off &amp; on to get the tables created. The triggers seem to create &amp; cause lots of errors which stop when you turn logging off &amp; on. 

Obviously the function called by turning logging on is more thorough than the enable extension function