From f2cfc6973ec1b43391654b4bd722c2c316d06fc7 Mon Sep 17 00:00:00 2001
From: kaiyu <404897439@qq.com>
Date: Thu, 19 Nov 2020 13:08:24 +0800
Subject: [PATCH] 增加删除天表代码

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

diff --git a/src/main/resources/mapper/HistoryMapper.xml b/src/main/resources/mapper/HistoryMapper.xml
index 0b3770c..743b83f 100644
--- a/src/main/resources/mapper/HistoryMapper.xml
+++ b/src/main/resources/mapper/HistoryMapper.xml
@@ -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