移除自定义的是否支持云台属性

This commit is contained in:
lin
2025-09-26 17:31:37 +08:00
parent 8d6fe0c9d8
commit 4280a1d08e
12 changed files with 84 additions and 41 deletions

View File

@@ -118,7 +118,8 @@ create table IF NOT EXISTS wvp_device_channel
has_audio bool default false,
gps_time character varying(50),
stream_identification character varying(50),
channel_type int default 0 not null,
channel_type int default 0 not null,
map_level int default 0,
gb_device_id character varying(50),
gb_name character varying(255),
gb_manufacturer character varying(255),
@@ -159,7 +160,6 @@ 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),

View File

@@ -118,7 +118,8 @@ create table IF NOT EXISTS wvp_device_channel
has_audio bool default false,
gps_time character varying(50),
stream_identification character varying(50),
channel_type int default 0 not null,
channel_type int default 0 not null,
map_level int default 0,
gb_device_id character varying(50),
gb_name character varying(255),
gb_manufacturer character varying(255),
@@ -159,7 +160,6 @@ 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

@@ -79,17 +79,17 @@ DELIMITER ;
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;
IF NOT EXISTS (SELECT column_name FROM information_schema.columns
WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device_channel' and column_name = 'map_level')
THEN
ALTER TABLE wvp_device_channel ADD map_level integer default 0;
END IF;
END; //
call wvp_20250924();
DROP PROCEDURE wvp_20250924;

View File

@@ -39,4 +39,4 @@ 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;
ALTER table wvp_device_channel ADD COLUMN IF NOT EXISTS map_level integer default 0;