refactor: 修改国家及语言表和模型

This commit is contained in:
2025-03-14 11:54:08 +08:00
parent d797850feb
commit ca14923a3e
4 changed files with 4 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ class CreateSysLanguage extends Migrator
$table = $this->table('sys_language', ['engine' => 'MyISAM', 'comment' => '语言表']);
$table->addColumn('country_id', 'integer', ['signed' => false, 'null' => false, 'comment' => '国家ID'])
->addColumn('name', 'string', ['limit' => 64, 'null' => false, 'default' => '', 'comment' => '语言名称'])
->addColumn('en_name', 'string', ['limit' => 64, 'null' => true, 'default' => null, 'comment' => '语言名称英文'])
->addColumn('code', 'string', ['limit' => 64, 'null' => false, 'default' => '', 'comment' => '语言编码'])
->addColumn('icon', 'string', ['limit' => 64, 'default' => null, 'comment' => '语言图标'])
->addColumn('url', 'string', ['limit' => 125, 'default' => null, 'comment' => '切换后访问的url'])