fix: sql update

This commit is contained in:
2023-10-30 11:06:41 +08:00
parent 4adea63183
commit 61f750ca32

View File

@@ -37,7 +37,8 @@ WHERE
-- 创建表 监控_基本信息
CREATE TABLE IF NOT EXISTS `monitor_base` (
DROP TABLE IF EXISTS `omc_db`.`monitor_base`;
CREATE TABLE IF NOT EXISTS `omc_db`.`monitor_base` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
`create_time` bigint DEFAULT '0' COMMENT '创建时间',
`cpu` float DEFAULT '0' COMMENT 'cpu使用率',
@@ -52,7 +53,8 @@ CREATE TABLE IF NOT EXISTS `monitor_base` (
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='监控_基本信息';
-- 创建表 监控_磁盘IO
CREATE TABLE IF NOT EXISTS `monitor_io` (
DROP TABLE IF EXISTS `omc_db`.`monitor_io`;
CREATE TABLE IF NOT EXISTS `omc_db`.`monitor_io` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
`create_time` bigint DEFAULT '0' COMMENT '创建时间',
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '磁盘名',
@@ -66,7 +68,8 @@ CREATE TABLE IF NOT EXISTS `monitor_io` (
) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='监控_磁盘IO';
-- 创建表 监控_网络IO
CREATE TABLE IF NOT EXISTS `monitor_network` (
DROP TABLE IF EXISTS `omc_db`.`monitor_network`;
CREATE TABLE IF NOT EXISTS `omc_db`.`monitor_network` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
`create_time` bigint DEFAULT '0' COMMENT '创建时间',
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '网卡名',