From e861c9dfab7d74444593b3cfa866544d648dca7f Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期二, 22 二月 2022 11:55:23 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' into wvp-pro-record --- 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