diff --git a/src/main/resources/db/migration/V3__Create_marker_tables.sql b/src/main/resources/db/migration/V3__Create_marker_tables.sql index ec179aa..22dcda2 100644 --- a/src/main/resources/db/migration/V3__Create_marker_tables.sql +++ b/src/main/resources/db/migration/V3__Create_marker_tables.sql @@ -3,7 +3,7 @@ CREATE TABLE IF NOT EXISTS airline_marker ( id BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', marker_name VARCHAR(255) NOT NULL COMMENT '标注名称', marker_type VARCHAR(255) COMMENT '标注类型', - status INT(11) DEFAULT 1 COMMENT '1 启用 0 停用。默认启用。', + status INT(11) NOT NULL DEFAULT 1 COMMENT '1 启用 0 停用。默认启用。', color VARCHAR(255) DEFAULT '#000000' COMMENT '颜色', icon VARCHAR(255) DEFAULT NULL COMMENT '图标', font_size INT(11) DEFAULT 14 COMMENT '字体大小', diff --git a/src/main/resources/mapper/airline/AirlineMarkerMapper.xml b/src/main/resources/mapper/airline/AirlineMarkerMapper.xml index b629102..f3f6d3a 100644 --- a/src/main/resources/mapper/airline/AirlineMarkerMapper.xml +++ b/src/main/resources/mapper/airline/AirlineMarkerMapper.xml @@ -24,8 +24,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - insert into airline_marker (marker_name, marker_type, status, color, icon, font_size, coordinates, description, create_by, create_time, update_by, update_time, remark) - values (#{markerName}, #{markerType}, #{status}, #{color}, #{icon}, #{fontSize}, #{coordinates}, #{description}, #{createBy}, now(), #{updateBy}, now(), #{remark}) + insert into airline_marker (marker_name, marker_type, color, icon, font_size, coordinates, description, create_by, create_time, update_by, update_time, remark) + values (#{markerName}, #{markerType}, #{color}, #{icon}, #{fontSize}, #{coordinates}, #{description}, #{createBy}, now(), #{updateBy}, now(), #{remark})