no message

This commit is contained in:
kuaifan
2024-10-24 11:48:44 +08:00
parent d6ddc5ff88
commit 01feacfe54
29 changed files with 180 additions and 116 deletions
@@ -0,0 +1,33 @@
<?php
use App\Models\WebSocketDialog;
use App\Models\WebSocketDialogMsg;
use App\Models\WebSocketDialogMsgRead;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddWebSocketDialogMsgReadsLive2 extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
WebSocketDialogMsg::whereType('text')->where('key', 'like', "LongText-%")->update(['key' => '']);
WebSocketDialogMsg::whereType('file')->where('key', 'like', "image.%")->update(['key' => '']);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}