From 1294081a9cdf9bb4b4523ffc872a4accb5d11144 Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期四, 29 六月 2023 09:36:13 +0800
Subject: [PATCH] 优化树形列表通道查询
---
sql/2.6.8升级2.6.9.sql | 23 +++++++++++++----------
1 files changed, 13 insertions(+), 10 deletions(-)
diff --git "a/sql/2.6.8\345\215\207\347\272\2472.6.9.sql" "b/sql/2.6.8\345\215\207\347\272\2472.6.9.sql"
index 32baaa8..e633d63 100644
--- "a/sql/2.6.8\345\215\207\347\272\2472.6.9.sql"
+++ "b/sql/2.6.8\345\215\207\347\272\2472.6.9.sql"
@@ -38,7 +38,7 @@
change geoCoordSys geo_coord_sys varchar(50) not null;
alter table device
- change treeType tree_type varchar(50) not null;
+ drop column treeType;
alter table device
change mediaServerId media_server_id varchar(50) default 'auto' null;
@@ -54,6 +54,13 @@
alter table device
change keepaliveIntervalTime keepalive_interval_time int null;
+
+alter table device
+ change online on_line varchar(50) null;
+
+alter table device
+ add COLUMN switch_primary_sub_stream bool default false comment '寮�鍚富瀛愮爜娴佸垏鎹㈢殑寮�鍏筹紙0-涓嶅紑鍚紝1-寮�鍚級鐜板湪宸茬煡鏀寔璁惧涓� 澶у崕銆乀P鈥斺�擫INK鍏ㄧ郴璁惧'
+
alter table device_alarm
change deviceId device_id varchar(50) not null;
@@ -177,10 +184,6 @@
change createTime create_time varchar(50) null;
alter table gb_stream
- add constraint gb_stream_pk
- primary key (gbStreamId);
-
-alter table gb_stream
change gbStreamId gb_stream_id int auto_increment;
alter table gb_stream
@@ -298,7 +301,7 @@
change updateTime update_time varchar(50) null;
alter table parent_platform
- change treeType tree_type varchar(50) not null;
+ drop column treeType;
alter table parent_platform
change asMessageChannel as_message_channel bool default false;
@@ -393,10 +396,6 @@
alter table stream_push
change status status bool default false;
-
-alter table stream_push
- change serverId server_id varchar(50) not null;
-
alter table stream_push
change pushTime push_time varchar(50) null;
@@ -412,6 +411,10 @@
alter table stream_push
change self self bool default false;
+alter table stream_push
+ drop column serverId;
+
+
alter table user
change roleId role_id int not null;
--
Gitblit v1.8.0