xbmc/xbmc — pull request #4066 by SantaFox (2014-01-21 18:38:11+00:00)
Title: Mysql library fixes

Fixes for #14857 (database upgrade from Frodo to Gotham Alpha)
Fixed situation with triggers not copied when upgrading MySQL db
Moved triggers creation code to separate sub to ensure that they are equal for db create and update to last version
Some SQL code cleanup