mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-26 20:52:44 +08:00
31 lines
513 B
PHP
31 lines
513 B
PHP
<?php
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
|
require_once 'SettingTrait.php';
|
|
|
|
final class V20211231013226 extends AbstractMigration
|
|
{
|
|
|
|
use SettingTrait;
|
|
|
|
public function up()
|
|
{
|
|
$this->handleSmsSettings();
|
|
}
|
|
|
|
protected function handleSmsSettings()
|
|
{
|
|
$rows = [
|
|
[
|
|
'section' => 'sms',
|
|
'item_key' => 'region',
|
|
'item_value' => 'ap-guangzhou',
|
|
]
|
|
];
|
|
|
|
$this->insertSettings($rows);
|
|
}
|
|
|
|
}
|