Fix bug on Console::getHasMessages().
Merge branch 'master' of github.com:bixuehujin/yii-common
Format sql file.
Add new methods to Term related.