Yii add 'engine and charset' at creating new table.

$this->createTable('{{test}}', array(
            'id' => 'pk',
        ), 'ENGINE=InnoDB DEFAULT CHARSET=utf8');

 

posted on 2012-12-05 17:04  技术员  阅读(145)  评论(0)    收藏  举报

导航