update: support plan utf8mb4

This commit is contained in:
tokumeikoi 2022-05-29 02:14:35 +08:00
parent 5e7f782583
commit 2426d88339
2 changed files with 7 additions and 3 deletions

View File

@ -162,11 +162,11 @@ CREATE TABLE `v2_plan` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL,
`transfer_enable` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`name` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
`show` tinyint(1) NOT NULL DEFAULT '0',
`sort` int(11) DEFAULT NULL,
`renew` tinyint(1) NOT NULL DEFAULT '1',
`content` text,
`content` text CHARACTER SET utf8mb4,
`month_price` int(11) DEFAULT NULL,
`quarter_price` int(11) DEFAULT NULL,
`half_year_price` int(11) DEFAULT NULL,
@ -378,4 +378,4 @@ CREATE TABLE `v2_user` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- 2022-05-10 17:13:24
-- 2022-05-28 18:13:17

View File

@ -573,3 +573,7 @@ DROP `last_reply_user_id`;
ALTER TABLE `v2_server_shadowsocks`
ADD `obfs` char(11) NULL AFTER `cipher`,
ADD `obfs_settings` varchar(255) NULL AFTER `obfs`;
ALTER TABLE `v2_plan`
CHANGE `name` `name` varchar(255) COLLATE 'utf8mb4_general_ci' NOT NULL AFTER `transfer_enable`,
CHANGE `content` `content` text COLLATE 'utf8mb4_general_ci' NULL AFTER `renew`;