jinpengyong
2022-01-06 45ece9986a39a01081fab9b224966e1f297d383d
src/main/resources/mapper/HistoryMapper.xml
@@ -250,7 +250,7 @@
    <update id="createHistoryTable" parameterType="String">
        CREATE TABLE history_${yearMonthDay} (
        `mac` varchar(20) DEFAULT NULL,
        `mac` varchar(30) DEFAULT NULL,
        `value` json DEFAULT NULL,
        `time` datetime DEFAULT NULL,
        `version` int(11) DEFAULT NULL,
@@ -259,4 +259,8 @@
        KEY `_idx_time` (`time`) USING BTREE
        ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC
    </update>
    <delete id="dropHistoryTable" parameterType="String">
        drop table history_${yearMonthDay}
    </delete>
</mapper>