From 0a44eb89654ebed5809675211e69c816b1dacf92 Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期日, 20 二月 2022 17:33:17 +0800
Subject: [PATCH] 增加配置将国标录像与其他录像分开

---
 sql/update.sql |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/sql/update.sql b/sql/update.sql
index d6386ea..2a16265 100644
--- a/sql/update.sql
+++ b/sql/update.sql
@@ -1 +1,7 @@
-ALTER TABLE stream_proxy ADD status bit(1) not null;
\ No newline at end of file
+ALTER TABLE stream_proxy ADD status bit(1) not null;
+
+# 鍘婚櫎瀛愭煡璇紭鍖栨煡璇㈤�熷害
+alter table device_channel
+    add subCount int default 0 null;
+
+update device_channel dc set dc.subCount = (select  te.count from (SELECT count(0) as count FROM device_channel WHERE parentId = dc.channelId) te)
\ No newline at end of file

--
Gitblit v1.8.0