1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-07-16 05:12:19 +08:00
course-tencent-cloud/db/migrations/20200827112717_insert_setting_data.php
koogua 0f6345e5da !7 纠正迁移文件和代码实际使用字段不一致
* 纠正迁移文件和时间代码中字段不一致
* 更新版本号
* 完善后台今日统计,增加权限白名单,增加后台首页菜单,调整后台登录页样式
* Merge branch 'koogua/I1XFCF' of https://gitee.com/koogua/course-tencen…
* 前台学习资料部分完成
* !2 后台运营统计合并
* 后台学习资料部分完成
* Merge branch 'master' into develop
* Merge branch 'master' of https://github.com/xiaochong0302/course-tencent-cloud
* 1.增加changelog.md
* 1.简化部分路由地址
* Merge pull request #2 from xiaochong0302/dependabot/composer/symfony/h…
* Bump symfony/http-foundation from 4.3.4 to 5.1.6
2020-10-13 10:24:40 +08:00

463 lines
14 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class InsertSettingData extends AbstractMigration
{
public function up()
{
$rows = [
[
'section' => 'captcha',
'item_key' => 'enabled',
'item_value' => '0',
],
[
'section' => 'captcha',
'item_key' => 'app_id',
'item_value' => '',
],
[
'section' => 'captcha',
'item_key' => 'secret_key',
'item_value' => '',
],
[
'section' => 'im.cs',
'item_key' => 'enabled',
'item_value' => '0',
],
[
'section' => 'im.cs',
'item_key' => 'user1_id',
'item_value' => '',
],
[
'section' => 'im.cs',
'item_key' => 'user2_id',
'item_value' => '',
],
[
'section' => 'im.cs',
'item_key' => 'user3_id',
'item_value' => '',
],
[
'section' => 'im.main',
'item_key' => 'title',
'item_value' => '菜鸟驿站',
],
[
'section' => 'im.main',
'item_key' => 'msg_max_length',
'item_value' => '1000',
],
[
'section' => 'im.main',
'item_key' => 'upload_img_enabled',
'item_value' => '0',
],
[
'section' => 'im.main',
'item_key' => 'upload_file_enabled',
'item_value' => '0',
],
[
'section' => 'im.main',
'item_key' => 'tool_audio_enabled',
'item_value' => '0',
],
[
'section' => 'im.main',
'item_key' => 'tool_video_enabled',
'item_value' => '0',
],
[
'section' => 'live.push',
'item_key' => 'domain',
'item_value' => '',
],
[
'section' => 'live.push',
'item_key' => 'auth_enabled',
'item_value' => '1',
],
[
'section' => 'live.push',
'item_key' => 'auth_key',
'item_value' => '',
],
[
'section' => 'live.push',
'item_key' => 'auth_delta',
'item_value' => '18000',
],
[
'section' => 'live.pull',
'item_key' => 'protocol',
'item_value' => 'http',
],
[
'section' => 'live.pull',
'item_key' => 'domain',
'item_value' => '',
],
[
'section' => 'live.pull',
'item_key' => 'trans_enabled',
'item_value' => '0',
],
[
'section' => 'live.pull',
'item_key' => 'auth_enabled',
'item_value' => '1',
],
[
'section' => 'live.pull',
'item_key' => 'auth_key',
'item_value' => '',
],
[
'section' => 'live.pull',
'item_key' => 'auth_delta',
'item_value' => '18000',
],
[
'section' => 'live.notify',
'item_key' => 'auth_key',
'item_value' => '',
],
[
'section' => 'live.notify',
'item_key' => 'stream_begin_url',
'item_value' => '',
],
[
'section' => 'live.notify',
'item_key' => 'stream_end_url',
'item_value' => '',
],
[
'section' => 'live.notify',
'item_key' => 'record_url',
'item_value' => '',
],
[
'section' => 'live.notify',
'item_key' => 'snapshot_url',
'item_value' => '',
],
[
'section' => 'live.notify',
'item_key' => 'porn_url',
'item_value' => '',
],
[
'section' => 'mail',
'item_key' => 'smtp_host',
'item_value' => 'smtp.163.com',
],
[
'section' => 'mail',
'item_key' => 'smtp_port',
'item_value' => '465',
],
[
'section' => 'mail',
'item_key' => 'smtp_encryption',
'item_value' => 'ssl',
],
[
'section' => 'mail',
'item_key' => 'smtp_auth_enabled',
'item_value' => '1',
],
[
'section' => 'mail',
'item_key' => 'smtp_username',
'item_value' => 'abc@163.com',
],
[
'section' => 'mail',
'item_key' => 'smtp_password',
'item_value' => '888888',
],
[
'section' => 'mail',
'item_key' => 'smtp_from_email',
'item_value' => 'abc@163.com',
],
[
'section' => 'mail',
'item_key' => 'smtp_from_name',
'item_value' => 'ABC有限公司',
],
[
'section' => 'pay.alipay',
'item_key' => 'enabled',
'item_value' => '1',
],
[
'section' => 'pay.alipay',
'item_key' => 'app_id',
'item_value' => '',
],
[
'section' => 'pay.alipay',
'item_key' => 'public_key',
'item_value' => '',
],
[
'section' => 'pay.alipay',
'item_key' => 'private_key',
'item_value' => '',
],
[
'section' => 'pay.alipay',
'item_key' => 'return_url',
'item_value' => '',
],
[
'section' => 'pay.alipay',
'item_key' => 'notify_url',
'item_value' => '',
],
[
'section' => 'pay.wxpay',
'item_key' => 'enabled',
'item_value' => '1',
],
[
'section' => 'pay.wxpay',
'item_key' => 'mp_app_id',
'item_value' => '',
],
[
'section' => 'pay.wxpay',
'item_key' => 'mini_app_id',
'item_value' => '',
],
[
'section' => 'pay.wxpay',
'item_key' => 'app_id',
'item_value' => '',
],
[
'section' => 'pay.wxpay',
'item_key' => 'mch_id',
'item_value' => '',
],
[
'section' => 'pay.wxpay',
'item_key' => 'key',
'item_value' => '',
],
[
'section' => 'pay.wxpay',
'item_key' => 'notify_url',
'item_value' => '',
],
[
'section' => 'pay.wxpay',
'item_key' => 'return_url',
'item_value' => '',
],
[
'section' => 'secret',
'item_key' => 'secret_key',
'item_value' => '',
],
[
'section' => 'secret',
'item_key' => 'secret_id',
'item_value' => '',
],
[
'section' => 'secret',
'item_key' => 'app_id',
'item_value' => '',
],
[
'section' => 'site',
'item_key' => 'title',
'item_value' => '酷瓜云课堂',
],
[
'section' => 'site',
'item_key' => 'keywords',
'item_value' => '开源网课系统,开源网校系统,开源网络教育平台,开源在线教育平台',
],
[
'section' => 'site',
'item_key' => 'description',
'item_value' => '酷瓜云课堂依托腾讯云基础服务使用C扩展框架PHALCON开发',
],
[
'section' => 'site',
'item_key' => 'url',
'item_value' => '',
],
[
'section' => 'site',
'item_key' => 'status',
'item_value' => 'normal',
],
[
'section' => 'site',
'item_key' => 'closed_tips',
'item_value' => '站点维护中,请稍后再访问。',
],
[
'section' => 'site',
'item_key' => 'index_tpl_type',
'item_value' => 'simple',
],
[
'section' => 'site',
'item_key' => 'copyright',
'item_value' => '2016-2020 深圳市酷瓜软件有限公司',
],
[
'section' => 'site',
'item_key' => 'icp_sn',
'item_value' => '',
],
[
'section' => 'site',
'item_key' => 'icp_link',
'item_value' => 'http://www.miitbeian.gov.cn',
],
[
'section' => 'site',
'item_key' => 'police_sn',
'item_value' => '',
],
[
'section' => 'site',
'item_key' => 'police_link',
'item_value' => '',
],
[
'section' => 'site',
'item_key' => 'analytics_enabled',
'item_value' => '0',
],
[
'section' => 'site',
'item_key' => 'analytics_script',
'item_value' => '',
],
[
'section' => 'sms',
'item_key' => 'app_id',
'item_value' => '',
],
[
'section' => 'sms',
'item_key' => 'app_key',
'item_value' => '',
],
[
'section' => 'sms',
'item_key' => 'signature',
'item_value' => '酷瓜云课堂',
],
[
'section' => 'sms',
'item_key' => 'template',
'item_value' => '{"verify":"561282","order":"561954","refund":"561286","live":"561288"}',
],
[
'section' => 'cos',
'item_key' => 'bucket',
'item_value' => '',
],
[
'section' => 'cos',
'item_key' => 'region',
'item_value' => '',
],
[
'section' => 'cos',
'item_key' => 'protocol',
'item_value' => 'https',
],
[
'section' => 'cos',
'item_key' => 'domain',
'item_value' => '',
],
[
'section' => 'vod',
'item_key' => 'storage_type',
'item_value' => 'nearby',
],
[
'section' => 'vod',
'item_key' => 'storage_region',
'item_value' => '',
],
[
'section' => 'vod',
'item_key' => 'audio_format',
'item_value' => 'mp3',
],
[
'section' => 'vod',
'item_key' => 'video_format',
'item_value' => 'hls',
],
[
'section' => 'vod',
'item_key' => 'wmk_enabled',
'item_value' => '1',
],
[
'section' => 'vod',
'item_key' => 'wmk_tpl_id',
'item_value' => '462027',
],
[
'section' => 'vod',
'item_key' => 'protocol',
'item_value' => 'https',
],
[
'section' => 'vod',
'item_key' => 'domain',
'item_value' => '',
],
[
'section' => 'vod',
'item_key' => 'key_anti_enabled',
'item_value' => '1',
],
[
'section' => 'vod',
'item_key' => 'key_anti_key',
'item_value' => '',
],
[
'section' => 'vod',
'item_key' => 'key_anti_expiry',
'item_value' => '10800',
],
[
'section' => 'vod',
'item_key' => 'key_anti_ip_limit',
'item_value' => '',
],
];
$this->table('kg_setting')->insert($rows)->save();
}
public function down()
{
$this->execute('DELETE FROM kg_setting');
}
}