Add RTSPStreamName to Monitors table. Bump version to 1.35.19
This commit is contained in:
parent
33dbcc449a
commit
01c74fdac3
|
@ -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@;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue