特性:支持在后台配置结婚离婚冷静期规则,并优化冷却时间文本提示;修复全局的离婚公告事件对象接收名称不匹配问题
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
DB::table('sysparam')->insertOrIgnore([
|
||||
[
|
||||
'alias' => 'divorce_mutual_cooldown',
|
||||
'guidetxt' => '协议离婚冷静期(天)',
|
||||
'body' => '70'
|
||||
],
|
||||
[
|
||||
'alias' => 'divorce_forced_cooldown',
|
||||
'guidetxt' => '强制离婚冷静期(天)',
|
||||
'body' => '70'
|
||||
],
|
||||
[
|
||||
'alias' => 'divorce_auto_cooldown',
|
||||
'guidetxt' => '系统强制离婚冷静期(天)',
|
||||
'body' => '70'
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
DB::table('sysparam')->whereIn('alias', [
|
||||
'divorce_mutual_cooldown',
|
||||
'divorce_forced_cooldown',
|
||||
'divorce_auto_cooldown'
|
||||
])->delete();
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user