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('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']) ->addColumn('status', 'boolean', ['null' => false,'default' => 1, 'comment' => '状态:1启用,0禁用']) ->addColumn('is_default', 'boolean', ['null' => false, 'default' => 0, 'comment' => '是否默认:1是,0否']) ->addColumn('sort', 'integer', ['default' => 0, 'comment' => '排序']) ->addColumn('created_at', 'timestamp', ['default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间']) ->addColumn('updated_at', 'timestamp', ['default' => 'CURRENT_TIMESTAMP', 'update' => 'CURRENT_TIMESTAMP', 'comment' => '更新时间']) ->create(); } }