From 2a8de579cdb672a24b92f8f28a67e8fb516a5271 Mon Sep 17 00:00:00 2001
From: lizijie <lzjiiie@163.com>
Date: Thu, 05 May 2022 16:31:48 +0800
Subject: [PATCH] 中隆汽车产业园设备数据转发

---
 src/main/resources/mapper/HistoryMapper.xml |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/HistoryMapper.xml b/src/main/resources/mapper/HistoryMapper.xml
index 0b3770c..1cd78ce 100644
--- a/src/main/resources/mapper/HistoryMapper.xml
+++ b/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>
\ No newline at end of file

--
Gitblit v1.8.0