Add RTSPStreamName to Monitors table. Bump version to 1.35.19

This commit is contained in:
Isaac Connor 2021-02-27 12:24:01 -05:00
parent 33dbcc449a
commit 01c74fdac3
4 changed files with 14 additions and 2 deletions

View File

@ -535,6 +535,7 @@ CREATE TABLE `Monitors` (
`Latitude` DECIMAL(10,8), `Latitude` DECIMAL(10,8),
`Longitude` DECIMAL(10,8), `Longitude` DECIMAL(10,8),
`RTSPServer` BOOLEAN NOT NULL DEFAULT FALSE, `RTSPServer` BOOLEAN NOT NULL DEFAULT FALSE,
`RTSPStreamName` varchar(255) NOT NULL default '',
PRIMARY KEY (`Id`) PRIMARY KEY (`Id`)
) ENGINE=@ZM_MYSQL_ENGINE@; ) ENGINE=@ZM_MYSQL_ENGINE@;

11
db/zm_update-1.35.19.sql Normal file
View File

@ -0,0 +1,11 @@
SET @s = (SELECT IF(
(SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE()
AND table_name = 'Monitors'
AND column_name = 'RTSPStreamName'
) > 0,
"SELECT 'Column RTSPStreamName already exists in Monitors'",
"ALTER TABLE `Monitors` ADD `RTSPStreamName` varchar(255) NOT NULL default '' AFTER `RTSPServer`"
));
PREPARE stmt FROM @s;
EXECUTE stmt;

View File

@ -28,7 +28,7 @@
%global _hardened_build 1 %global _hardened_build 1
Name: zoneminder Name: zoneminder
Version: 1.35.18 Version: 1.35.19
Release: 1%{?dist} Release: 1%{?dist}
Summary: A camera monitoring and analysis tool Summary: A camera monitoring and analysis tool
Group: System Environment/Daemons Group: System Environment/Daemons

View File

@ -1 +1 @@
1.35.18 1.35.19