/*
* @Author: fm453
* @Date:   2021-09-09 10:52:59
* @Last Modified by:   fm453
* @Last Modified time: 2021-09-11 07:18:51
*/

/*2021.09.01*/
ALTER TABLE `c_adminer`
ADD COLUMN `nickname` varchar(32) COMMENT '昵称' AFTER `username`;

/*2021.09.10*/
ALTER TABLE `c_fans`
ADD COLUMN `from` varchar(32) CHARACTER SET utf8 COMMENT '来源渠道(使用项目简称)';

ALTER TABLE `c_fans`
CHANGE COLUMN `username` `mobile` varchar(15) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '手机号,用于登陆' AFTER `id`;

-- 2024.08.07
ALTER TABLE `c_sms`
MODIFY COLUMN `uid` int NOT NULL DEFAULT 0 COMMENT '管理用户ID' AFTER `pid`,
MODIFY COLUMN `mid` int NOT NULL DEFAULT 0 COMMENT '会员用户ID' AFTER `uid`;

-- 2024.10.24
ALTER TABLE `c_log`
    MODIFY COLUMN `username` varchar (32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL AFTER `id`,
    MODIFY COLUMN `ip` varchar (64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL AFTER `username`,
    MODIFY COLUMN `data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL AFTER `ip`,
    MODIFY COLUMN `create_time` varchar (32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL AFTER `data`;