From 45ece9986a39a01081fab9b224966e1f297d383d Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Thu, 06 Jan 2022 13:40:20 +0800
Subject: [PATCH] 修改建表mac字段长度

---
 src/main/resources/mapper/HistoryFiveMinutelyMapper.xml |    2 +-
 src/main/resources/mapper/AlarmMapper.xml               |    2 +-
 src/main/resources/mapper/HistoryMinutelyMapper.xml     |    2 +-
 src/main/resources/mapper/HistoryMapper.xml             |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/resources/mapper/AlarmMapper.xml b/src/main/resources/mapper/AlarmMapper.xml
index f070bda..e58a8b6 100644
--- a/src/main/resources/mapper/AlarmMapper.xml
+++ b/src/main/resources/mapper/AlarmMapper.xml
@@ -37,7 +37,7 @@
 
     <update id="createTable">
         CREATE TABLE IF NOT EXISTS `alarm_${yearAndMonth}` (
-        `mac` varchar(20) CHARACTER SET utf8 DEFAULT NULL,
+        `mac` varchar(30) CHARACTER SET utf8 DEFAULT NULL,
         `json` json DEFAULT NULL,
         `state` int(2) DEFAULT NULL,
         `time` datetime DEFAULT NULL,
diff --git a/src/main/resources/mapper/HistoryFiveMinutelyMapper.xml b/src/main/resources/mapper/HistoryFiveMinutelyMapper.xml
index eadaddb..695c213 100644
--- a/src/main/resources/mapper/HistoryFiveMinutelyMapper.xml
+++ b/src/main/resources/mapper/HistoryFiveMinutelyMapper.xml
@@ -43,7 +43,7 @@
 
     <update id="createHistoryFiveMinutely" parameterType="String">
         CREATE TABLE  IF NOT EXISTS `history_five_minutely_${yearAndMonth}` (
-        `mac` varchar(20) CHARACTER SET latin1 DEFAULT NULL,
+        `mac` varchar(30) CHARACTER SET latin1 DEFAULT NULL,
         `time` datetime DEFAULT NULL,
         `json` json DEFAULT NULL,
          KEY `idx_time` (`time`),
diff --git a/src/main/resources/mapper/HistoryMapper.xml b/src/main/resources/mapper/HistoryMapper.xml
index 743b83f..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,
diff --git a/src/main/resources/mapper/HistoryMinutelyMapper.xml b/src/main/resources/mapper/HistoryMinutelyMapper.xml
index 8512a8c..27c3c4d 100644
--- a/src/main/resources/mapper/HistoryMinutelyMapper.xml
+++ b/src/main/resources/mapper/HistoryMinutelyMapper.xml
@@ -12,7 +12,7 @@
     </insert>
     <update id="createHistoryMinutelyTable">
     CREATE TABLE  IF NOT EXISTS `history_minutely_${yearAndMonth}` (
-        `mac` varchar(20) CHARACTER SET latin1 DEFAULT NULL,
+        `mac` varchar(30) CHARACTER SET latin1 DEFAULT NULL,
         `time` datetime DEFAULT NULL,
         `json` json DEFAULT NULL,
         KEY `_idx_mac` (`mac`) USING BTREE,

--
Gitblit v1.8.0