Add db update for SOAP_wsa_compl. Bump version as a result

pull/3829/head
Isaac Connor 2024-02-13 17:38:11 -05:00
parent 7517de2811
commit af9402cde8
4 changed files with 21 additions and 2 deletions

View File

@ -611,6 +611,7 @@ CREATE TABLE `Monitors` (
`Longitude` DECIMAL(11,8),
`RTSPServer` BOOLEAN NOT NULL DEFAULT FALSE,
`RTSPStreamName` varchar(255) NOT NULL default '',
`SOAP_wsa_compl BOOLEAN NOT NULL default TRUE,
`Importance` enum('Normal','Less','Not') NOT NULL default 'Normal',
`MQTT_Enabled` BOOLEAN NOT NULL DEFAULT false,
`MQTT_Subscriptions` varchar(255) default '',

18
db/zm_update-1.37.51.sql Normal file
View File

@ -0,0 +1,18 @@
--
-- Update Monitors table to have SOAP_wsa_compl
--
SELECT 'Checking for SOAP_wsa_compl in Monitors';
SET @s = (SELECT IF(
(SELECT COUNT(*)
FROM INFORMATION_SCHEMA.COLUMNS
WHERE table_name = 'Monitors'
AND table_schema = DATABASE()
AND column_name = 'SOAP_wsa_compl'
) > 0,
"SELECT 'Column SOAP_wsa_compl already exists on Monitors'",
"ALTER TABLE Monitors add SOAP_wsa_compl BOOLEAN NOT NULL default TRUE after RTSPStreamName"
));
PREPARE stmt FROM @s;
EXECUTE stmt;

View File

@ -18,7 +18,7 @@
%global zmtargetdistro %{?rhel:el%{rhel}}%{!?rhel:fc%{fedora}}
Name: zoneminder
Version: 1.37.50
Version: 1.37.51
Release: 2%{?dist}
Summary: A camera monitoring and analysis tool
Group: System Environment/Daemons

View File

@ -1 +1 @@
1.37.50
1.37.51