Add db update for SOAP_wsa_compl. Bump version as a result
parent
7517de2811
commit
af9402cde8
|
@ -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 '',
|
||||
|
|
|
@ -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;
|
|
@ -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
|
||||
|
|
|
@ -1 +1 @@
|
|||
1.37.50
|
||||
1.37.51
|
||||
|
|
Loading…
Reference in New Issue