-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:ZoneMinder/zoneminder
- Loading branch information
Showing
22 changed files
with
549 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
-- | ||
-- Update Monitors table to have RTSP2Web | ||
-- | ||
|
||
SELECT 'Checking for RTSP2WebEnabled in Monitors'; | ||
SET @s = (SELECT IF( | ||
(SELECT COUNT(*) | ||
FROM INFORMATION_SCHEMA.COLUMNS | ||
WHERE table_name = 'Monitors' | ||
AND table_schema = DATABASE() | ||
AND column_name = 'RTSP2WebEnabled' | ||
) > 0, | ||
"SELECT 'Column RTSP2WebEnabled already exists on Monitors'", | ||
"ALTER TABLE `Monitors` ADD COLUMN `RTSP2WebEnabled` BOOLEAN NOT NULL default false AFTER `Decoding`" | ||
)); | ||
|
||
PREPARE stmt FROM @s; | ||
EXECUTE stmt; | ||
|
||
SELECT 'Checking for RTSP2WebType in Monitors'; | ||
SET @s = (SELECT IF( | ||
(SELECT COUNT(*) | ||
FROM INFORMATION_SCHEMA.COLUMNS | ||
WHERE table_name = 'Monitors' | ||
AND table_schema = DATABASE() | ||
AND column_name = 'RTSP2WebType' | ||
) > 0, | ||
"SELECT 'Column RTSP2WebType already exists on Monitors'", | ||
"ALTER TABLE `Monitors` ADD COLUMN `RTSP2WebType` enum('HLS','MSE','WebRTC') NOT NULL default 'WebRTC' AFTER `RTSP2WebEnabled`" | ||
)); | ||
|
||
PREPARE stmt FROM @s; | ||
EXECUTE stmt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.