通道增加自定义属性 是否支持云台控制和是否支持语音对讲

This commit is contained in:
lin
2025-09-24 17:47:12 +08:00
parent 554a11ead6
commit bee911fa09
9 changed files with 85 additions and 4 deletions

View File

@@ -159,6 +159,8 @@ create table IF NOT EXISTS wvp_device_channel
gps_speed double precision,
gps_altitude double precision,
gps_direction double precision,
enable_ptz integer default 0,
enable_broadcast integer default 0,
index (data_type),
index (data_device_id),
constraint uk_wvp_unique_channel unique (gb_device_id)

View File

@@ -159,6 +159,8 @@ create table IF NOT EXISTS wvp_device_channel
gps_speed double precision,
gps_altitude double precision,
gps_direction double precision,
enable_ptz integer default 0,
enable_broadcast integer default 0,
constraint uk_wvp_unique_channel unique (gb_device_id)
);

View File

@@ -73,6 +73,30 @@ call wvp_20250917();
DROP PROCEDURE wvp_20250917;
DELIMITER ;
/*
* 20250924
*/
DELIMITER // -- 重定义分隔符避免分号冲突
CREATE PROCEDURE `wvp_20250924`()
BEGIN
IF NOT EXISTS (SELECT column_name FROM information_schema.columns
WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'enable_ptz')
THEN
ALTER TABLE wvp_device_channel ADD enable_ptz integer default 0;
END IF;
IF NOT EXISTS (SELECT column_name FROM information_schema.columns
WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'enable_broadcast')
THEN
ALTER TABLE wvp_device_channel ADD enable_broadcast integer default 0;
END IF;
END; //
call wvp_20250924();
DROP PROCEDURE wvp_20250924;
DELIMITER ;

View File

@@ -37,3 +37,6 @@ create table IF NOT EXISTS wvp_jt_channel (
ALTER table wvp_media_server ADD COLUMN IF NOT EXISTS jtt_proxy_port integer;
ALTER table wvp_media_server ADD COLUMN IF NOT EXISTS mp4_port integer;
ALTER table wvp_media_server ADD COLUMN IF NOT EXISTS mp4_ssl_port integer;
ALTER table wvp_device_channel ADD COLUMN IF NOT EXISTS enable_broadcast integer default 0;
ALTER table wvp_device_channel ADD COLUMN IF NOT EXISTS enable_broadcast integer default 0;