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:
parent
a50889df71
commit
9c8882bac6
27
db/migrations/20211231013226.php
Normal file
27
db/migrations/20211231013226.php
Normal 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();
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user