mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
Issues #1460 修改utf8数据带表情字符错误
This commit is contained in:
@@ -7,7 +7,7 @@ CREATE TABLE `label` (
|
|||||||
`user_id` bigint(20) NOT NULL,
|
`user_id` bigint(20) NOT NULL,
|
||||||
`label` varchar(30) NOT NULL,
|
`label` varchar(30) NOT NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for role
|
-- Table structure for role
|
||||||
@@ -17,7 +17,7 @@ CREATE TABLE `role` (
|
|||||||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
`role_name` varchar(30) NOT NULL,
|
`role_name` varchar(30) NOT NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for user
|
-- Table structure for user
|
||||||
@@ -29,7 +29,7 @@ CREATE TABLE `user` (
|
|||||||
`c_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`c_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`role_id` bigint(20) DEFAULT NULL,
|
`role_id` bigint(20) DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;
|
||||||
|
|
||||||
insert into user (id,name,role_id) values (1,'Eric',1);
|
insert into user (id,name,role_id) values (1,'Eric',1);
|
||||||
insert into role (id,role_name) values (1,'admin');
|
insert into role (id,role_name) values (1,'admin');
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ CREATE TABLE IF NOT EXISTS `meta_snapshot` (
|
|||||||
KEY `destination` (`destination`),
|
KEY `destination` (`destination`),
|
||||||
KEY `destination_timestamp` (`destination`,`binlog_timestamp`),
|
KEY `destination_timestamp` (`destination`,`binlog_timestamp`),
|
||||||
KEY `gmt_modified` (`gmt_modified`)
|
KEY `gmt_modified` (`gmt_modified`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='表结构记录表快照表';
|
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='表结构记录表快照表';
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `meta_history` (
|
CREATE TABLE IF NOT EXISTS `meta_history` (
|
||||||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||||
@@ -36,4 +36,4 @@ CREATE TABLE IF NOT EXISTS `meta_history` (
|
|||||||
KEY `destination` (`destination`),
|
KEY `destination` (`destination`),
|
||||||
KEY `destination_timestamp` (`destination`,`binlog_timestamp`),
|
KEY `destination_timestamp` (`destination`,`binlog_timestamp`),
|
||||||
KEY `gmt_modified` (`gmt_modified`)
|
KEY `gmt_modified` (`gmt_modified`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='表结构变化明细表';
|
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='表结构变化明细表';
|
||||||
Reference in New Issue
Block a user