docs: 修改migrations文件中的表注释

This commit is contained in:
2025-06-16 15:01:36 +08:00
parent 99de839bed
commit 5ff7bd4423
4 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ class CreateOauthAuthCode extends Migrator
*/
public function change()
{
$table = $this->table('oauth_auth_code', ['engine' => 'MyISAM', 'collation' => 'utf8mb4_general_ci', 'comment' => '授权码表']);
$table = $this->table('oauth_auth_code', ['engine' => 'MyISAM', 'collation' => 'utf8mb4_general_ci', 'comment' => 'OAuth2 授权码表']);
$table->addColumn('code', 'string', ['limit' => 64, 'null' => false, 'default' => '', 'comment' => '授权码'])
->addColumn('client_id', 'integer', ['limit' => 11, 'null' => false, 'default' => 0, 'comment' => '客户端ID'])
->addColumn('user_id', 'integer', ['limit' => 11, 'null' => false, 'default' => 0, 'comment' => '用户ID'])