diff --git a/module-map/src/main/resources/mybatis/mapper/user-location/user-location-mapper.xml b/module-map/src/main/resources/mybatis/mapper/user-location/user-location-mapper.xml index 9b183918..81ea0c31 100644 --- a/module-map/src/main/resources/mybatis/mapper/user-location/user-location-mapper.xml +++ b/module-map/src/main/resources/mybatis/mapper/user-location/user-location-mapper.xml @@ -41,14 +41,14 @@ - CREATE TABLE `map_user_location` ( + CREATE TABLE IF NOT EXISTS `map_user_location` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `user_location_id` char(36) DEFAULT NULL COMMENT '主键', `user_lng` varchar(255) DEFAULT NULL COMMENT '用户经度', `user_lat` varchar(255) DEFAULT NULL COMMENT '用户精度', `is_overstep` int(1) DEFAULT '0' COMMENT '是否越界', `user_username` varchar(255) DEFAULT NULL COMMENT '用户名', - `user_name` varbinary(255) DEFAULT NULL COMMENT '昵称', + `user_name` varchar(255) DEFAULT NULL COMMENT '昵称', `creator` char(36) DEFAULT NULL COMMENT '创建人', `gmt_create` datetime DEFAULT NULL COMMENT '创建时间', `is_delete` int(1) DEFAULT '0' COMMENT '是否删除',