mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 22:37:53 -05:00
Don't add Go2RTCType
This commit is contained in:
@@ -514,7 +514,6 @@ CREATE TABLE `Monitors` (
|
||||
`RTSP2WebType` enum('HLS','MSE','WebRTC') NOT NULL default 'WebRTC',
|
||||
`RTSP2WebStream` enum('Primary','Secondary') NOT NULL DEFAULT 'Primary',
|
||||
`Go2RTCEnabled` BOOLEAN NOT NULL default false,
|
||||
`Go2RTCType` enum('HLS','MSE','WebRTC') NOT NULL default 'WebRTC',
|
||||
`JanusEnabled` BOOLEAN NOT NULL default false,
|
||||
`JanusAudioEnabled` BOOLEAN NOT NULL default false,
|
||||
`Janus_Profile_Override` VARCHAR(30) NOT NULL DEFAULT '',
|
||||
|
||||
@@ -16,21 +16,6 @@ SET @s = (SELECT IF(
|
||||
PREPARE stmt FROM @s;
|
||||
EXECUTE stmt;
|
||||
|
||||
SELECT 'Checking for Go2RTCType in Monitors';
|
||||
SET @s = (SELECT IF(
|
||||
(SELECT COUNT(*)
|
||||
FROM INFORMATION_SCHEMA.COLUMNS
|
||||
WHERE table_name = 'Monitors'
|
||||
AND table_schema = DATABASE()
|
||||
AND column_name = 'Go2RTCType'
|
||||
) > 0,
|
||||
"SELECT 'Column Go2RTCType already exists on Monitors'",
|
||||
"ALTER TABLE `Monitors` ADD COLUMN `Go2RTCType` enum('HLS','MSE','WebRTC') NOT NULL default 'WebRTC' AFTER `Go2RTCEnabled`"
|
||||
));
|
||||
|
||||
PREPARE stmt FROM @s;
|
||||
EXECUTE stmt;
|
||||
|
||||
SET @s = (SELECT IF(
|
||||
(SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE()
|
||||
AND table_name = 'Monitors'
|
||||
|
||||
Reference in New Issue
Block a user