refactor: 修改agent的migration文件

This commit is contained in:
2025-04-21 11:13:55 +08:00
parent acdfc632d5
commit f04635dae5

View File

@@ -30,7 +30,7 @@ class CreateAgent extends Migrator
$table = $this->table('agent', ['engine' => 'MyISAM', 'comment' => '代理商表']); $table = $this->table('agent', ['engine' => 'MyISAM', 'comment' => '代理商表']);
$table->addColumn('language_id', 'integer', ['signed' => false, 'null' => false, 'comment' => '语言ID']) $table->addColumn('language_id', 'integer', ['signed' => false, 'null' => false, 'comment' => '语言ID'])
->addColumn('corp_name', 'string', ['limit' => 64, 'null' => false, 'comment' => '公司名称']) ->addColumn('corp_name', 'string', ['limit' => 64, 'null' => false, 'comment' => '公司名称'])
->addColumn('email', 'string', ['limit' => 64, 'null' => false, 'comment' => '邮箱']) ->addColumn('email', 'string', ['limit' => 128, 'null' => false, 'comment' => '邮箱'])
->addColumn('phone', 'string', ['limit' => 64, 'null' => false, 'comment' => '电话']) ->addColumn('phone', 'string', ['limit' => 64, 'null' => false, 'comment' => '电话'])
->addColumn('referer_url', 'string', ['limit' => 255, 'null' => false, 'comment' => '来源URL']) ->addColumn('referer_url', 'string', ['limit' => 255, 'null' => false, 'comment' => '来源URL'])
->addColumn('website_url', 'string', ['limit' => 255, 'null' => false, 'comment' => '网站URL']) ->addColumn('website_url', 'string', ['limit' => 255, 'null' => false, 'comment' => '网站URL'])