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  技术员  阅读(141)  评论(0编辑  收藏  举报

导航