瀏覽代碼

更新数据库

xiaoguohua 2 天之前
父節點
當前提交
cfc6478bac
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      doc/数据库脚本/gateway.sql

+ 8 - 2
doc/数据库脚本/gateway.sql

@@ -278,9 +278,11 @@ CREATE TABLE IF NOT EXISTS config_weather_local
 (
     id BIGSERIAL PRIMARY KEY,
     config_station_id bigint NOT NULL,
-    horizontal_irradiance json,
+    irradiance json,
     inclined_irradiance json,
+    daily_irradiance json,
     temperature json,
+    board_temperature json,
     pressure json,
     humidity json,
     wind_speed json,
@@ -297,7 +299,7 @@ ON COLUMN config_weather_local.id IS '主键';
 COMMENT
 ON COLUMN config_weather_local.config_station_id IS '场站id';
 COMMENT
-ON COLUMN config_weather_local.horizontal_irradiance IS '水平面总辐照度测点配置
+ON COLUMN config_weather_local.irradiance IS '总辐照度测点配置
 {
 deviceId:xxx
 pointType:YC|YX|YM
@@ -306,8 +308,12 @@ pointCode:xxx
 COMMENT
 ON COLUMN config_weather_local.inclined_irradiance IS '斜面辐照度测点配置';
 COMMENT
+ON COLUMN config_weather_local.daily_irradiance IS '日辐射度累计值';
+COMMENT
 ON COLUMN config_weather_local.temperature IS '温度测点配置';
 COMMENT
+ON COLUMN config_weather_local.board_temperature IS '组件温度测点配置';
+COMMENT
 ON COLUMN config_weather_local.pressure IS '气压测点配置';
 COMMENT
 ON COLUMN config_weather_local.humidity IS '湿度测点配置';