Add db update scripts and bump version for them
parent
46e283a9a2
commit
9a55851cb3
|
@ -512,6 +512,7 @@ CREATE TABLE `Monitors` (
|
|||
`Decoding` enum('None','Ondemand','KeyFrames','KeyFrames+Ondemand', 'Always') NOT NULL default 'Always',
|
||||
`RTSP2WebEnabled` BOOLEAN NOT NULL default false,
|
||||
`RTSP2WebType` enum('HLS','MSE','WebRTC') NOT NULL default 'WebRTC',
|
||||
`RTSP2WebStream` enum('Primary','Secondary') NOT NULL DEFAULT 'Primary',
|
||||
`JanusEnabled` BOOLEAN NOT NULL default false,
|
||||
`JanusAudioEnabled` BOOLEAN NOT NULL default false,
|
||||
`Janus_Profile_Override` VARCHAR(30) NOT NULL DEFAULT '',
|
||||
|
|
|
@ -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 = 'RTSP2WebStream'
|
||||
) > 0,
|
||||
"SELECT 'Column RTSP2WebStream already exists in Monitors'",
|
||||
"ALTER TABLE `Monitors` ADD `RTSP2WebStream` enum('Primary','Secondary') NOT NULL DEFAULT 'Primary' AFTER `RTSP2WebType`"
|
||||
));
|
||||
|
||||
PREPARE stmt FROM @s;
|
||||
EXECUTE stmt;
|
|
@ -18,7 +18,7 @@
|
|||
%global zmtargetdistro %{?rhel:el%{rhel}}%{!?rhel:fc%{fedora}}
|
||||
|
||||
Name: zoneminder
|
||||
Version: 1.37.65
|
||||
Version: 1.37.66
|
||||
Release: 1%{?dist}
|
||||
Summary: A camera monitoring and analysis tool
|
||||
Group: System Environment/Daemons
|
||||
|
|
|
@ -1 +1 @@
|
|||
1.37.65
|
||||
1.37.66
|
||||
|
|
Loading…
Reference in New Issue