增加表注释

This commit is contained in:
JaguarJack
2019-01-18 10:35:39 +08:00
parent b6ce13c00e
commit a17f53f967
3 changed files with 6 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ class Users extends Migrator
*/
public function change()
{
$table = $this->table('users', ['engine' => 'InnoDB']);
$table = $this->table('users', ['engine' => 'InnoDB', 'comment' => '用户表']);
$table->addColumn('name', 'string',['limit' => 50, 'default'=>'','comment'=>'用户名'])
->addColumn('email', 'string',['limit' => 255, 'default'=>'','comment'=>'邮箱'])
->addColumn('password', 'string',['limit' => 255, 'default'=>'','comment'=>'密码'])