Last active
December 20, 2015 06:49
-
-
Save yankchina/6088845 to your computer and use it in GitHub Desktop.
yii create table model
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->createTable('tbl_topic', | |
array( | |
'id' =>'pk', | |
'title' =>'string NOT NULL', | |
'description' => 'text COMMENT \'说明\'', | |
'project_id' => 'int(11) DEFAULT NULL', | |
'owner_id' => 'int(11) DEFAULT NULL', | |
'status_code' => 'int(11) DEFAULT NULL', | |
), | |
'ENGINE=InnoDB DEFAULT CHARSET=utf8'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
增加 sql 备注的方式