sql - Any easy ways to automate creation of Yii DB migration code -
i have started using yii (1.1) in order keep syncronized db schemas between different environments. questions is: there easy ways automate writing of up() , down() methods sql code? at moment, if add new table or alter existing table need write manually these methods. the command yiic migrate create table_name creates empty class. alternatively create new migration file , use $this->exexute('sql code here') property. wondering if there way yii detect db changes , create migration code on it's own