1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-24 12:05:39 +08:00

短信配置增加region选项

This commit is contained in:
koogua 2021-12-31 09:37:38 +08:00
parent a50889df71
commit 9c8882bac6

View File

@ -0,0 +1,27 @@
<?php
use Phinx\Migration\AbstractMigration;
final class V20211231013226 extends AbstractMigration
{
public function up()
{
$this->handleSmsSetting();
}
protected function handleSmsSetting()
{
$row =
[
[
'section' => 'sms',
'item_key' => 'region',
'item_value' => 'ap-guangzhou',
]
];
$this->table('kg_setting')->insert($row)->save();
}
}