Bug #10119 Fix - Table structure upgrade sql
http://tracker.modx.com/issues/10119