2.1 คู่มือการอัปเกรด
ฟีเจอร์และการเปลี่ยนแปลง
-
ต้องการ
PHP>=8.1 -
ขึ้นอยู่กับ
workerman/workerman:^5.1โดยให้การสนับสนุนโค้ดยังมีการอ้างอิงถึง webman โค้ด -
เพิ่มฟังก์ชันการเชื่อมต่อใน
webman/redis:^2.1webman/cache:^2.1webman/database:^2.1webman/think-orm:^2.1webman/think-cache:^2.1สนับสนุนอัตโนมัติสำหรับสภาพแวดล้อมโค้ดและไม่ใช่โค้ด
โปรดทำการสำรองข้อมูลก่อนอัปเกรด และรันคำสั่งต่อไปนี้เพื่อทำการอัปเกรด
composer config -g --unset repos.packagist
composer require -W workerman/workerman:~5.1 workerman/webman-framework:~2.1
อัปเกรดฐานข้อมูล
หากคุณใช้ส่วนประกอบต่อไปนี้ โปรดรันคำสั่งที่เกี่ยวข้องเพื่อทำการอัปเกรด
-
Laravel ของ
illuminate/databasecomposer require -W webman/database:~2.1 -
Laravel ของ
illuminate/rediscomposer require -W webman/redis:~2.1 -
Laravel ของ
illuminate/cachecomposer require -W webman/cache:~2.1 -
ThinkPHP ของ
topthink/think-ormcomposer require -W webman/think-orm:~2.1 -
ThinkPHP ของ
topthink/think-cachecomposer require -W webman/think-cache:~2.1 -
webman/redis-queue
composer require -W webman/redis-queue:~2.1 -
webman/log
composer require -W webman/log:~2.1