* Fix upgrade sql bug.