feat: 添加 Laravel Reverb 支持,更新 .env.example 文件以配置 WebSocket,增强彩票调度功能,更新 API 路由以支持期号管理与结果发布
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
/**
|
||||
* 将旧版期号状态值迁移为《04-领域字典》约定。
|
||||
*/
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
DB::table('draws')->where('status', 'pending_review')->update(['status' => 'review']);
|
||||
DB::table('draws')->where('status', 'published')->update(['status' => 'cooldown']);
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
DB::table('draws')->where('status', 'review')->update(['status' => 'pending_review']);
|
||||
DB::table('draws')->where('status', 'cooldown')->update(['status' => 'published']);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user