mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 00:29:09 +08:00
update: fix ticket message length support utf8mb4
This commit is contained in:
parent
c9cd307cc4
commit
c957a4ca83
@ -12,6 +12,7 @@ use Illuminate\Support\Facades\DB;
|
|||||||
class TicketService {
|
class TicketService {
|
||||||
public function replyByAdmin($ticketId, $message, $userId):void
|
public function replyByAdmin($ticketId, $message, $userId):void
|
||||||
{
|
{
|
||||||
|
if ($message)
|
||||||
$ticket = Ticket::where('id', $ticketId)
|
$ticket = Ticket::where('id', $ticketId)
|
||||||
->first();
|
->first();
|
||||||
if (!$ticket) {
|
if (!$ticket) {
|
||||||
|
@ -207,7 +207,9 @@ CREATE TABLE `v2_server_log` (
|
|||||||
`created_at` int(11) NOT NULL,
|
`created_at` int(11) NOT NULL,
|
||||||
`updated_at` int(11) NOT NULL,
|
`updated_at` int(11) NOT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `log_at` (`log_at`)
|
KEY `log_at` (`log_at`),
|
||||||
|
KEY `user_id` (`user_id`),
|
||||||
|
KEY `server_id` (`server_id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
|
||||||
@ -305,7 +307,7 @@ CREATE TABLE `v2_ticket_message` (
|
|||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`user_id` int(11) NOT NULL,
|
`user_id` int(11) NOT NULL,
|
||||||
`ticket_id` int(11) NOT NULL,
|
`ticket_id` int(11) NOT NULL,
|
||||||
`message` varchar(255) NOT NULL,
|
`message` text CHARACTER SET utf8mb4 NOT NULL,
|
||||||
`created_at` int(11) NOT NULL,
|
`created_at` int(11) NOT NULL,
|
||||||
`updated_at` int(11) NOT NULL,
|
`updated_at` int(11) NOT NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
@ -349,4 +351,4 @@ CREATE TABLE `v2_user` (
|
|||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
|
||||||
-- 2021-07-30 17:19:01
|
-- 2021-08-18 12:22:48
|
||||||
|
@ -432,3 +432,6 @@ ALTER TABLE `v2_order`
|
|||||||
ALTER TABLE `v2_server_log`
|
ALTER TABLE `v2_server_log`
|
||||||
ADD INDEX `user_id` (`user_id`),
|
ADD INDEX `user_id` (`user_id`),
|
||||||
ADD INDEX `server_id` (`server_id`);
|
ADD INDEX `server_id` (`server_id`);
|
||||||
|
|
||||||
|
ALTER TABLE `v2_ticket_message`
|
||||||
|
CHANGE `message` `message` text COLLATE 'utf8mb4_general_ci' NOT NULL AFTER `ticket_id`;
|
||||||
|
Loading…
Reference in New Issue
Block a user